Commit graph

6069 commits

Author SHA1 Message Date
Scott Shawcroft
af67261469
Tweak computation of new heap area size
It now computes slightly more bytes to account for ATB size using
truncated division. In other words, any remaining block space that
doesn't fill an ATB byte won't be used. So, we round up our next
area size to use an exact number of ATB bytes.

Fixes #10451
2025-07-29 14:52:22 -07:00
d808effab0 py/parsenum: Fix parsing complex literals with negative real part.
If a complex literal had a negative real part and a positive imaginary
part, it was not parsed properly because the imaginary part also came out
negative.

Includes a test of complex parsing, which fails without this fix.

Co-authored-by: ComplexSymbol <141301057+ComplexSymbol@users.noreply.github.com>
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-08 13:44:39 -04:00
Dan Halbert
b874e04166 micropython v1.25.0 merge: fix tests, fix typos, fix includes 2025-06-21 11:25:07 -04:00
Dan Halbert
1263d11286 Merge remote-tracking branch 'adafruit/main' into merge-micropython-v1.25.0 2025-06-20 17:25:01 -04:00
Dan Halbert
5fb3f960ca MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
Dan Halbert
ce450dc271 merge from adafruit/main 2025-06-16 09:12:47 -04:00
Dan Halbert
8c7b5923cc fix compilation issues 2025-06-12 22:48:11 -04:00
Dan Halbert
356643826a wip: fix some tests 2025-06-11 22:53:06 -04:00
Lucian Copeland
03c682ac4a Merge remote-tracking branch 'upstream/main' into esp-microros 2025-06-11 12:52:38 -04:00
Lucian Copeland
7276e2a6cb Fix module config 2025-06-11 12:27:02 -04:00
Dan Halbert
2dd33e3a8d wip: ports compile and pass smoke tests
tests/ not run yet.
Reduced some differences from upstream by changing some error messages and defining some preprocessor macros.
2025-06-10 21:53:41 -04:00
Lucian Copeland
635c8b12d6 Requested fixes to exceptions, docs, config 2025-06-09 18:13:08 -04:00
Dan Halbert
1381e17320 wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
eightycc
766b052637
Merge pull request #10386 from dhalbert/gcc14
switch to gcc 14.2Rel1
2025-05-30 07:45:06 -07:00
Dan Halbert
7a99affc63 switch to gcc 14.2Rel1 2025-05-29 18:12:52 -04:00
Dan Halbert
c87ba3658e Merge remote-tracking branch 'adafruit/9.2.x' into 9.2.x-merge-2025-05-28 2025-05-28 16:25:40 -04:00
Bernhard Bablok
cb1fcf3d50 fix deque implementation from upstream 2025-05-28 11:06:22 +02:00
Dan Halbert
2a7b2b6631
Update py/makeversionhdr.py 2025-05-15 09:46:02 -04:00
Emmanuel Ferdman
87a714e168
Migrate to modern datetime inteface
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-15 06:13:18 -07:00
Scott Shawcroft
d82b91ec19
Remove old traceback type
Both #1167 and #5072 add traceback types. #1167 added a bunch of
named tuples in order to reproduce the traceback string. Since #5072
added traceback printing, we don't need the old way. So, rollback
PR #1167 in favor of the newer traceback type.
2025-05-12 14:47:37 -07:00
Scott Shawcroft
3435f47385
Remove non-standard sys.print_exception()
It already warned about it.

Fixes #9451
2025-05-09 14:43:31 -07:00
Lucian Copeland
133c2e26ef Migrate to new board, fix data loss
Removes use of the m5stack_cardputer base definition and adds a ros-specific
m5stack_cardputer_ros version. Also repairs some lost changes intended for the
prior commit that were dropped in an accidental reset. Compiles, but has a
memory access error.
2025-05-06 12:58:20 -04:00
Lucian Copeland
0f07ab90e0 Initial shared-bindings implementation
Adds minimal implementations for the rclcpy module, including Node and
Publisher, with a placeholder int-only publish function for testing.
2025-05-06 12:58:20 -04:00
Scott Shawcroft
fba4e681e1
Fix finaliser in malloc helper 2025-05-02 22:49:12 -07:00
Cooper Dalrymple
e729849fac Initial setup of phaser effect. 2025-05-01 08:15:43 -05:00
Scott Shawcroft
91cf8fb83d
Make collect the default 2025-04-24 14:59:07 -07:00
Scott Shawcroft
35ffb64a11
Apply suggestions from code review
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2025-04-24 12:29:57 -07:00
Scott Shawcroft
c340596580
Add selective collect to memory allocations
By selectively collecting an allocation, we can skip scanning many
allocations for pointers because we know up front they won't have
them. This helps a ton when large buffers are being used and memory is
slow (PSRAM). In one Fruit Jam example GC times drop from 80+ms to
~25ms. The example uses a number of bitmaps that are now no longer
scanned.
2025-04-22 14:07:00 -07:00
Scott Shawcroft
492f6e90e8
Merge pull request #10263 from tannewt/next_code_working_dir
Add working_directory for subsequent code file
2025-04-22 14:03:54 -07:00
Scott Shawcroft
ba69a59dea
Merge pull request #10271 from dhalbert/wifi-power-management
Wifi power management
2025-04-22 13:37:52 -07:00
Scott Shawcroft
50382b22c7
No qstr hash on all SAMD21 2025-04-22 11:03:48 -07:00
Dan Halbert
b3ff08495e
Merge pull request #10269 from tannewt/shrink_samd
Shrink non-FULL builds (SAMDs mostly)
2025-04-21 16:27:14 -04:00
Dan Halbert
7d65991f2c Merge remote-tracking branch 'adafruit/main' into wifi-power-management 2025-04-21 16:09:23 -04:00
Scott Shawcroft
8571634abc
Fix overridability for double typecode 2025-04-21 09:56:17 -07:00
Dan Halbert
b1ce99a97d Merge branch 'main' of https://github.com/adafruit/circuitpython into wifi-power-management 2025-04-20 21:03:44 -04:00
gamblor21
3478eea1f0 Merge remote-tracking branch 'adafruit/main' into audioeffect-reverb 2025-04-20 09:25:38 -05:00
Dan Halbert
1ff3dff298 add wifi.radio.power_management et al 2025-04-19 21:06:19 -04:00
Mark
670d046333
Merge pull request #10258 from relic-se/multi-tap-delay
Audio Effect Multi-Tap Delay
2025-04-19 10:42:46 -05:00
Scott Shawcroft
eca93043ff
Shrink non-FULL builds (SAMDs mostly)
* Use 0 bytes for QSTR hash. Fixes #10151
* Update libgcc used on SAMD21 to 14.2. Reduces test build by over 100 bytes.
* Turn off 'd' typecode support on non-full builds.
2025-04-17 14:26:04 -07:00
Cooper Dalrymple
1bf769a083 Initial setup of multi-tap delay effect. 2025-04-15 16:45:38 -05:00
Scott Shawcroft
8f7496c069
Merge pull request #10231 from eightycc/issue-9710
Implement BOOTSEL button entry to safe mode for RP2.
2025-04-15 09:51:40 -07:00
Damien George
f498a16c7d all: Bump version to 1.25.0.
Signed-off-by: Damien George <damien@micropython.org>
2025-04-16 00:28:30 +10:00
Dan Halbert
97d037b3c4 wip 2025-04-14 20:27:53 -04:00
eightycc
7012deb3e7 Implement use_global_block_protection_lock for write-enabling flash.
Fix mis-placed conditional in circuitpy_mpconfig.h.
2025-04-14 07:47:59 -07:00
Damien George
9ee2ef5108 py/emitinlinerv32: Move include of asmrv32.h to within feature guard.
Otherwise, when compiling on 16-bit systems (where `mp_uint_t` is 16 bits
wide) the compiler warns about "left shift count >= width of type", from
the static inline functions that have RV32_ENCODE_TYPE_xxx macros which
do a lot of bit shifting.

Signed-off-by: Damien George <damien@micropython.org>
2025-04-14 11:13:19 +10:00
eightycc
4d81b53024 Update CIRCUITPY_BOOT_BUTTON_NO_GPIO to 0/1 for false/true. Add compile time check forbidding CIRCUITPY_BOOT_BUTTON and CIRCUITPY_BOOT_BUTTON_NO_GPIO. 2025-04-11 20:42:00 -07:00
gamblor21
86eca38566 Moving to audiofreeverb and renaming to Freeverb 2025-04-11 17:15:50 -05:00
Dan Halbert
641ab0dc06 increase default PYSTACK size from 1536 to 2048 2025-04-08 12:44:48 -04:00
Dan Halbert
c286fc4bca
Merge pull request #9878 from eightycc/bleio-build-fix
Allow Selection of _bleio by Board, Fixup CIRCUITPY_BLEIO Flags
2025-04-07 18:52:56 -04:00
Mark
549a67df81
Merge branch 'main' into audioeffect-chorus 2025-04-01 18:41:32 -05:00