Dan Halbert
3f1b9af025
py/mpprint.c: fix formatting
2023-10-26 15:30:42 -04:00
c695f8b20f
remove some unneeded diffs
2023-10-26 19:39:43 +02:00
a069dc92e0
restore cprintf/vcprintf prototypes
2023-10-26 19:39:26 +02:00
Scott Shawcroft
f439f02492
Add warnings and warn about displayio changes
...
Follow up to #8493
2023-10-25 15:45:45 -07:00
de541cf155
Fix pointer-ness, const-ness of compressed messages
...
micropython puts the pointer-ness into the typedef; we can put the
const-ness there too.
this reduces the delta to micropython; for instance, emitinlinextensa
and emitinlinethumb now match upstream.
2023-10-25 21:40:11 +02:00
54a5878ee0
WIP
2023-10-25 21:24:52 +02:00
Scott Shawcroft
be30c12a74
Pass subobject into native subscr
...
This allows PixelBuf to call transmit after setting a value.
Fixes #8488
2023-10-25 11:44:32 -07:00
acf350a1b7
In py/ use MP_ERROR_TEXT instead of translate
2023-10-25 08:19:31 +02:00
55874b6470
Rename compressed_string_t to mp_rom_error_text_t to match upstream
2023-10-25 08:14:13 +02:00
Scott Shawcroft
63079c75b0
Re-add passing native methods the subclass instance
...
Fixes #8488
2023-10-24 16:20:51 -07:00
Scott Shawcroft
e62db5adcd
Fix native property setting from subclass
2023-10-24 16:20:51 -07:00
Scott Shawcroft
e1df598199
Split displayio hardware support from core
...
These are moved:
* Display -> busdisplay.BusDisplay
* FourWire -> fourwire.FourWire
* EPaperDisplay -> epaperdisplay.EPaperDisplay
* I2CDisplay -> i2cdisplaybus.I2CDisplayBus
`paralleldisplay` is now `paralleldisplaybus` (and registered as
`paralleldisplay` too).
Bus related helpers are split out of display_core into bus_core.
It is in still displayio since it is a dependency of both
busdisplay and epaperdisplay.
Fixes #7667
2023-10-24 15:43:34 -07:00
Scott Shawcroft
168c40e940
Merge pull request #8508 from dhalbert/v1.21-merge
...
V1.21 merge
2023-10-24 15:36:06 -07:00
Scott Shawcroft
ecaf9e6b14
Fix native emitter compile
2023-10-24 14:48:02 -07:00
Scott Shawcroft
d8148559c2
Enable native subpackage support
2023-10-24 13:49:18 -07:00
Scott Shawcroft
d14bb575cb
Fix mp_frozen_names
2023-10-24 13:02:09 -07:00
Dan Halbert
2c795acf1e
py/compile.c: add missing line for native labels in await
2023-10-24 15:39:26 -04:00
Bob Abeles
6725be4259
And formatting, again
2023-10-23 20:43:57 -07:00
Bob Abeles
3f4332be80
Another CI formatting issue
2023-10-23 20:40:51 -07:00
Bob Abeles
892d89e8b7
Fix CI detected line-length issue
2023-10-23 20:35:31 -07:00
Bob Abeles
2e996587fe
Improve make translation data performance.
2023-10-23 20:08:15 -07:00
Dan Halbert
6cd5150ac1
fix gc_free() to build in mpy-cross
2023-10-23 20:44:03 -04:00
Dan Halbert
3f0b807e74
pre-commit C formatting fix
2023-10-23 20:37:42 -04:00
Dan Halbert
8f254035dd
pre-commit fixes
2023-10-23 20:14:40 -04:00
Scott Shawcroft
f13ea9a49f
Fix async tests by adding back __await__ use. Remove u* lookup
2023-10-23 16:13:11 -07:00
Dan Halbert
8017a1ad30
ports/unix VARIANT=coverage fixes
2023-10-20 16:51:04 -04:00
7ab5252cdd
Add CIRCUITPY_MESSAGE_COMPRESSION_LEVEL
...
to trade compile speed & flash size
Initially enable the faster mode on rp2040 and espressif, where there's
usually plenty of flash available (these advanced techniques save hundreds
to thousands of bytes, which is important on a lot of old samd21 boards
but is a drop in the lake of a 4MB flash chip)
2023-10-20 19:18:18 +01:00
Dan Halbert
fdfc4421b1
MICROPY_NONSTANDARD_TYPECODES default; check MICROPY_PY_ERRNO in objexcept.c
2023-10-20 13:35:38 -04:00
Dan Halbert
6eb0607a53
fix build when MICROPY_PY_ERRNO is 0
2023-10-20 10:43:22 -04:00
Dan Halbert
4b42a6f4a0
restore old uzlib; remove remaining U and u prefixes
2023-10-19 21:29:57 -04:00
Dan Halbert
367e13c69f
change CIRCUITPY change markers to CIRCUITPY-CHANGE
2023-10-19 16:42:36 -04:00
Dan Halbert
c0a4abc03c
Fix merge bugs; remove shared/tinyusb/*
2023-10-19 16:02:42 -04:00
Dan Halbert
f2ebe6839c
Initial MicroPython v1.21.0 merge; not compiled yet
2023-10-18 17:49:14 -04:00
Dan Halbert
2f391e5679
restore SUPEROPT_GC, SUPEROPT_VM
2023-10-12 15:25:28 -04:00
Dan Halbert
a13185bb34
fix inclusion of ulab sources
2023-10-12 11:03:00 -04:00
Scott Shawcroft
9633c4e78f
Merge remote-tracking branch 'adafruit/main' into v1.20-merge
2023-10-11 11:21:57 -07:00
Scott Shawcroft
6e278900bd
Only include mpconfigport.h once
2023-10-11 10:04:03 -07:00
Scott Shawcroft
9be3999e78
Add back makefile print variable
2023-10-11 10:04:02 -07:00
Scott Shawcroft
2910dea6fd
Almost fix extra_coverage test
2023-10-11 10:04:02 -07:00
Scott Shawcroft
22a44c6003
Try and fix mpy-cross variants
2023-10-11 10:03:46 -07:00
Dan Halbert
7869706551
force FROZEN_MANIFEST build; add back make print-%
2023-10-10 22:10:17 -04:00
Damien George
e00a144008
all: Bump version to 1.21.0.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-06 10:32:07 +11:00
Scott Shawcroft
bf3d84195f
Fix decompressing using qstrs after running the VM
...
The qstr state still pointed to qstr pools in the released MP heap.
2023-10-05 14:56:11 -07:00
Scott Shawcroft
49511b0746
Bring back ordereddict.move_to_end()
2023-10-05 12:48:45 -07:00
Scott Shawcroft
94c7082e9c
Fix super init. CP changed it to support kwargs
2023-10-05 12:44:30 -07:00
Scott Shawcroft
18c03a74dd
Fix a few tests
...
* Re-enable a couple FATFS configurations we added.
* Remove MICROPY_PY_IO_FILEIO.
* Remove uasyncio from standard unix build.
* Re-add our unicode printing improvements.
2023-10-05 10:59:08 -07:00
Dan Halbert
7e0e6fcdca
Metro M4 now compiles
2023-10-03 15:03:59 -04:00
Damien George
cf490a7091
all: Fix various spelling mistakes found by codespell 2.2.6.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-10-03 11:24:50 +11:00
1b9ecabf8b
Fix constructing empty namedtuple
...
this change from micropython was not taken with the merge
2023-10-02 09:08:03 -05:00
18a5a897f1
makeqstrdef: restore CIRCUITPY behavior
...
this fixes the qrio test, among others
2023-10-02 08:50:47 -05:00
1ccce65311
file no longer used
2023-10-02 08:48:19 -05:00
6d59e55599
fix making mpy-cross automatically
2023-10-02 07:28:19 -05:00
Dan Halbert
2fc5a934a1
add back generic subscript iterator, gc_never_free
2023-09-29 23:01:02 -04:00
Dan Halbert
68a2927385
MP_REGISTER_ROOT_POINTER for port-specific root pointers
2023-09-29 15:46:42 -04:00
Dan Halbert
1c388ab315
finish converting to MP_REGISTER_ROOT_POINTER()
2023-09-29 10:49:34 -04:00
Jim Mussared
276bfa3146
py/lexer: Add missing initialisation for fstring_args_idx.
...
This was missed in 692d36d779 . Probably
never noticed because everything enables `MICROPY_GC_CONSERVATIVE_CLEAR`,
but found via ASAN thanks to @gwangmu & @chibinz.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-09-29 13:58:26 +10:00
Ihor Nehrutsa
d83c1a43d4
py: Change ifdef DEBUG_PRINT to if DEBUG_PRINT.
...
Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
2023-09-29 13:04:38 +10:00
Angus Gratton
2fcd28f713
py/mkrules.mk: Don't strip binary if STRIP variable is unset.
...
This provides a way to build a non-DEBUG host binary that still has symbols
and debug information.
Document this for the unix port, and update a comment in the unix port
Makefile.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-09-29 13:01:12 +10:00
Dan Halbert
76ff01452b
Trinket M0 comes up; still very much wip
2023-09-28 16:22:10 -04:00
MicroDev
27fd60d739
implement suggested changes
...
- update the docs
- split out common `watchdog_reset`
- revert to using `None` instead of `WatchDogMode.NONE`
2023-09-24 15:23:38 +00:00
cd462c51b3
re-fix stream function definition
2023-09-22 14:26:36 -05:00
2c3d81148e
re-add CP-specific C files
2023-09-22 14:26:25 -05:00
c53cb3ef25
re-add CP-specific exception related types
2023-09-22 14:26:13 -05:00
79309c1208
re-add CP-specific exception types
2023-09-22 14:25:50 -05:00
4bbf42c4c3
fix duplicate array_locals_dict_table
2023-09-22 14:25:36 -05:00
7c2fbff965
fix use of locals_dict
2023-09-22 14:25:23 -05:00
99479a69f8
fix definition of slice type with optional "make_new"
2023-09-22 13:56:36 -05:00
e48984872b
allow definition of namedtuples in core
2023-09-22 13:56:16 -05:00
a181172336
remove redundant declaratoin
2023-09-22 13:55:24 -05:00
0265ae07f8
remove unused functions
2023-09-22 13:55:15 -05:00
51314fb7de
fix availability of mp_obj_array_locals_dict
2023-09-22 13:55:08 -05:00
2c70537aba
fix memoryview cast&hex
2023-09-22 13:54:20 -05:00
085cf0e3e4
make mp_stream_flush available
2023-09-22 13:52:04 -05:00
556ec9d300
fixes for mp_type_get_protocol_slot
2023-09-22 13:51:57 -05:00
566688b028
fix mpy magic numbers
2023-09-22 13:50:35 -05:00
bb0f8149df
fix circuitpy memoryview.cast
2023-09-22 13:44:48 -05:00
0d796249e8
remove unused function
2023-09-22 13:43:47 -05:00
5367c9f7ef
fix "native exception getter"
2023-09-22 13:42:19 -05:00
f9f75d8202
MAKE_ENUM_TYPE for new style type defs
2023-09-22 13:39:24 -05:00
Scott Shawcroft
7bad82a219
C6 compiles, runs but wifi crashes
2023-09-22 10:02:35 -07:00
6b5c7b6ce6
fix const vs static generatorexit again
2023-09-22 10:45:49 -05:00
9dda69cf9e
add missing declarations that got lost in the merge
2023-09-22 10:40:11 -05:00
f77e0b8992
fix comment marker
2023-09-22 10:39:50 -05:00
60fa26022b
build fixes for persistent code
2023-09-22 10:39:41 -05:00
5c0f8f7786
fixes for circuitpython nativeglue
2023-09-22 10:39:28 -05:00
a285a33076
Restore our defines for exception chaining
2023-09-22 10:39:12 -05:00
9104654930
makeqstrdata: ensure _lt and _gt qstrs are sorted early
...
this fixes a build error because their numbers have to be <256
2023-09-22 10:38:52 -05:00
Dan Halbert
10b95a1998
add translate.h and linker.h includes back to runtime.h; remove linker.h refs; remove top-level lib/cyw43-driver
2023-09-20 22:00:09 -04:00
a00f2d8940
array extend/append need extern linkage & right names
2023-09-20 11:46:51 -05:00
7a386545ca
re-add translation make rules
2023-09-20 11:46:35 -05:00
a760794449
re-add objtraceback.o
2023-09-20 11:46:22 -05:00
f83a235c85
re-add mp_obj_exception_get_native
2023-09-20 11:46:14 -05:00
76ef77a620
fix exception chaining, preprocessor error
2023-09-20 11:26:57 -05:00
e068ff7234
fix compile errors, fix mp_raise prototypes
2023-09-20 11:26:41 -05:00
1ab884ab0f
fix compile errors
2023-09-20 11:26:26 -05:00
c87703512a
fix conditional nesting
2023-09-20 11:26:17 -05:00
37c8b0df9c
fix argument name
2023-09-20 11:26:03 -05:00
6b8ee2ca6f
remove old python style checking for "special accessors"
...
this appears to be properly handled by other (new?) code, but
tests will tell.
2023-09-20 11:25:58 -05:00
bb6d530c1d
slots & macro moved to header
2023-09-20 11:25:09 -05:00
7806044e5e
string construction changed
2023-09-20 11:25:01 -05:00