Skip to content

Commit bbad5b0

Browse files
authored
Merge branch 'micropython:master' into esp32_bitstream
2 parents 49c9a79 + 2c80d36 commit bbad5b0

File tree

22 files changed

+320
-225
lines changed

22 files changed

+320
-225
lines changed

.github/workflows/ports_unix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
(cd ports/unix && gcov -o build-coverage/py ../../py/*.c || true)
8989
(cd ports/unix && gcov -o build-coverage/extmod ../../extmod/*.c || true)
9090
- name: Upload coverage to Codecov
91-
uses: codecov/codecov-action@v4
91+
uses: codecov/codecov-action@v5
9292
with:
9393
fail_ci_if_error: true
9494
verbose: true

docs/library/binascii.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ Functions
3636
Encode binary data in base64 format, as in `RFC 3548
3737
<https://tools.ietf.org/html/rfc3548.html>`_. Returns the encoded data
3838
followed by a newline character if newline is true, as a bytes object.
39+
40+
.. function:: crc32(data, [value])
41+
42+
Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC
43+
of *value*. The default initial CRC is zero. The algorithm is consistent
44+
with the ZIP file checksum.

docs/library/bluetooth.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ L2CAP connection-oriented-channels
665665

666666
Connect to a listening peer on the specified *psm* with local MTU set to *mtu*.
667667

668-
On successful connection, the the ``_IRQ_L2CAP_CONNECT`` event will be
668+
On successful connection, the ``_IRQ_L2CAP_CONNECT`` event will be
669669
raised, allowing the client to obtain the CID and the local and remote (peer) MTU.
670670

671671
An unsuccessful connection will raise the ``_IRQ_L2CAP_DISCONNECT`` event

docs/library/machine.TimerWiPy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Methods
7171

7272
Otherwise, a TimerChannel object is initialized and returned.
7373

74-
The operating mode is is the one configured to the Timer object that was used to
74+
The operating mode is the one configured to the Timer object that was used to
7575
create the channel.
7676

7777
- ``channel`` if the width of the timer is 16-bit, then must be either ``TIMER.A``, ``TIMER.B``.

docs/library/pyb.Timer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Methods
163163
- ``callback`` - as per TimerChannel.callback()
164164

165165
- ``pin`` None (the default) or a Pin object. If specified (and not None)
166-
this will cause the alternate function of the the indicated pin
166+
this will cause the alternate function of the indicated pin
167167
to be configured for this timer channel. An error will be raised if
168168
the pin doesn't support any alternate functions for this timer channel.
169169

docs/reference/manifest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ re-flashing the entire firmware. However, it can still be useful to
2626
selectively freeze some rarely-changing dependencies (such as third-party
2727
libraries).
2828

29-
The way to list the Python files to be be frozen into the firmware is via
29+
The way to list the Python files to be frozen into the firmware is via
3030
a "manifest", which is a Python file that will be interpreted by the build
3131
process. Typically you would write a manifest file as part of a board
3232
definition, but you can also write a stand-alone manifest file and use it with

extmod/modplatform.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
// See: https://sourceforge.net/p/predef/wiki/Home/
3737

3838
#if defined(__ARM_ARCH)
39+
#if defined(__ARM_ARCH_ISA_A64)
40+
#define MICROPY_PLATFORM_ARCH "aarch64"
41+
#else
3942
#define MICROPY_PLATFORM_ARCH "arm"
43+
#endif
4044
#elif defined(__x86_64__) || defined(_M_X64)
4145
#define MICROPY_PLATFORM_ARCH "x86_64"
4246
#elif defined(__i386__) || defined(_M_IX86)
@@ -49,7 +53,13 @@
4953
#define MICROPY_PLATFORM_ARCH ""
5054
#endif
5155

52-
#if defined(__GNUC__)
56+
#if defined(__clang__)
57+
#define MICROPY_PLATFORM_COMPILER \
58+
"Clang " \
59+
MP_STRINGIFY(__clang_major__) "." \
60+
MP_STRINGIFY(__clang_minor__) "." \
61+
MP_STRINGIFY(__clang_patchlevel__)
62+
#elif defined(__GNUC__)
5363
#define MICROPY_PLATFORM_COMPILER \
5464
"GCC " \
5565
MP_STRINGIFY(__GNUC__) "." \
@@ -86,12 +96,17 @@
8696
#elif defined(_PICOLIBC__)
8797
#define MICROPY_PLATFORM_LIBC_LIB "picolibc"
8898
#define MICROPY_PLATFORM_LIBC_VER _PICOLIBC_VERSION
99+
#elif defined(__ANDROID__)
100+
#define MICROPY_PLATFORM_LIBC_LIB "bionic"
101+
#define MICROPY_PLATFORM_LIBC_VER MP_STRINGIFY(__ANDROID_API__)
89102
#else
90103
#define MICROPY_PLATFORM_LIBC_LIB ""
91104
#define MICROPY_PLATFORM_LIBC_VER ""
92105
#endif
93106

94-
#if defined(__linux)
107+
#if defined(__ANDROID__)
108+
#define MICROPY_PLATFORM_SYSTEM "Android"
109+
#elif defined(__linux)
95110
#define MICROPY_PLATFORM_SYSTEM "Linux"
96111
#elif defined(__unix__)
97112
#define MICROPY_PLATFORM_SYSTEM "Unix"

ports/cc3200/FreeRTOS/Source/tasks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
16711671
if( listIS_CONTAINED_WITHIN( &xPendingReadyList, &( pxTCB->xEventListItem ) ) == pdFALSE )
16721672
{
16731673
/* Is it in the suspended list because it is in the Suspended
1674-
state, or because is is blocked with no timeout? */
1674+
state, or because it is blocked with no timeout? */
16751675
if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdFALSE )
16761676
{
16771677
xReturn = pdTRUE;

ports/esp32/modnetwork_globals.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,9 @@
8282
#endif
8383
{ MP_ROM_QSTR(MP_QSTR_STAT_WRONG_PASSWORD), MP_ROM_INT(WIFI_REASON_AUTH_FAIL)},
8484
{ MP_ROM_QSTR(MP_QSTR_STAT_BEACON_TIMEOUT), MP_ROM_INT(WIFI_REASON_BEACON_TIMEOUT)},
85+
#if !MICROPY_PREVIEW_VERSION_2
86+
// Deprecated, use STAT_CONNECT_FAIL same as other ports
8587
{ MP_ROM_QSTR(MP_QSTR_STAT_ASSOC_FAIL), MP_ROM_INT(WIFI_REASON_ASSOC_FAIL)},
88+
#endif
89+
{ MP_ROM_QSTR(MP_QSTR_STAT_CONNECT_FAIL), MP_ROM_INT(WIFI_REASON_ASSOC_FAIL)},
8690
{ MP_ROM_QSTR(MP_QSTR_STAT_HANDSHAKE_TIMEOUT), MP_ROM_INT(WIFI_REASON_HANDSHAKE_TIMEOUT)},

0 commit comments

Comments
 (0)