Jeff Epler
98c546bf57
call common validation function
...
Co-authored-by: MicroDev <70126934+microdev1@users.noreply.github.com>
2023-03-22 10:16:48 -05:00
Jeff Epler
349dedca54
struct: Check that argument counts match, similar to cpython3
...
.. and test our struct module during the build-time tests
Closes #7771
2023-03-22 09:35:09 -05:00
Damien George
31e7a0587d
stm32/boards/NUCLEO_G0B1RE: Add config for USB and mboot.
...
But leave these disabled.
Signed-off-by: Damien George <damien@micropython.org>
2023-03-22 16:38:03 +11:00
Damien George
31638473b7
stm32/mboot: Add support for G0 MCUs.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-22 16:38:03 +11:00
Damien George
c7923b1139
stm32: Add support for USB on G0 MCUs.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-22 16:38:03 +11:00
robert-hh
b7ea90d4cb
rp2/machine_uart: Fix setting of UART LCR parameters.
...
Prior to this change, setting of UART parameters like parity, stop bits or
data bits did not work correctly. As suggested by @iabdalkader, adding
__DSB() fixes the problem, making sure that changes to the UART LCR_H
register are seen by the peripheral.
Note: the FIFO is already enabled in the call to uart_init(), so the call
to uart_set_fifo_enabled() is not required, but kept for visibility.
Fixes issue #10976 .
2023-03-22 16:21:48 +11:00
Damien George
b5ceb9d577
tools/pyboard.py: Fix joining of path in filesystem_command.
...
This was broken by 5327cd1021dc92cad428ff44cb114c4a94c0bc45
Signed-off-by: Damien George <damien@micropython.org>
2023-03-22 15:19:09 +11:00
Dan Halbert
c93560144b
Merge pull request #7678 from FoamyGuy/boundary_fill_background_tasks
...
do background tasks and handle interrupt during boundary fill
2023-03-21 23:38:05 -04:00
Dan Halbert
cc3a626e12
Merge pull request #7765 from microdev1/ci
...
CI: Change condition to run all jobs
2023-03-21 23:37:17 -04:00
Scott Shawcroft
0eb08509f0
Make set_stack_limit respect fixed stack
...
Fixes #2830
2023-03-21 16:42:49 -07:00
Scott Shawcroft
9c3c0555dd
Switch iMX RT sdk to NXP repo
...
Fixes #7645
2023-03-21 16:21:57 -07:00
MicroDev
461d833c1c
Merge pull request #7763 from dhalbert/update-tinyusb-remove-usb_descriptor
...
submodules: update tinyusb; remove usb_descriptor; use partial clone for submodules
2023-03-22 00:11:02 +05:30
MicroDev
4a6965ee76
change condition to run all jobs
2023-03-21 22:33:13 +05:30
Dan Halbert
7ee85408a1
Merge pull request #7755 from isacben/block-device-arguments-typing
...
Updated block_device type annotation
2023-03-21 12:51:40 -04:00
MicroDev
e4b5b20ebe
don't call reload_initiate
if already initiated
2023-03-21 21:34:30 +05:30
Scott Shawcroft
67e0a49a1f
Merge pull request #7724 from tannewt/get_perfbench_running
...
Improve iMX RT performance
2023-03-21 09:00:48 -07:00
Neradoc
b45d128726
fix lwip name in 01space_lcd042_esp32c3
2023-03-21 16:46:08 +01:00
Dan Halbert
ae95274b66
use blobless partial clone for make fetch-submodules
2023-03-21 11:43:33 -04:00
Scott Shawcroft
c78502d8a5
Merge pull request #7746 from FoamyGuy/diskinfo_api
...
Diskinfo api for web workflow
2023-03-21 08:43:21 -07:00
Dan Halbert
98bff96d3c
update tinyusb: fixes + no more submodules
2023-03-21 11:01:58 -04:00
Dan Halbert
c0384b57f1
remove unused submodule tools/usb_descriptor
2023-03-21 11:01:40 -04:00
Dan Halbert
d9d27a3e31
Fix signature of mkfs()
2023-03-21 10:30:03 -04:00
Dan Halbert
4aa1896b06
Merge pull request #7762 from microdev1/ci
...
CI: Update set matrix script
2023-03-21 07:46:23 -04:00
MicroDev
395bc0aac7
don't run all jobs if changed files is empty
2023-03-21 16:11:57 +05:30
MicroDev
ccd417cd8b
add esp specific modules to src patterns
2023-03-21 16:01:13 +05:30
Damien George
d54208a2ff
py/scheduler: Implement VM abort flag and mp_sched_vm_abort().
...
This is intended to be used by the very outer caller of the VM/runtime. It
allows setting a top-level NLR handler that can be jumped to directly, in
order to forcefully abort the VM/runtime.
Enable using:
#define MICROPY_ENABLE_VM_ABORT (1)
Set up the handler at the top level using:
nlr_buf_t nlr;
nlr.ret_val = NULL;
if (nlr_push(&nlr) == 0) {
nlr_set_abort(&nlr);
// call into the VM/runtime
...
nlr_pop();
} else {
if (nlr.ret_val == NULL) {
// handle abort
...
} else {
// handle other exception that propagated to the top level
...
}
}
nlr_set_abort(NULL);
Schedule an abort, eg from an interrupt handler, using:
mp_sched_vm_abort();
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 18:08:57 +11:00
Damien George
5d4bfce034
py/mpstate: Add mp_thread_is_main_thread() helper macro.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 18:01:01 +11:00
Jeremy Rand
d677023b3d
extmod/vfs_posix: Do not filter '..*' in ilistdir when filtering '..'.
...
When iterating over os.ilistdir(), the special directories '.' and '..'
are filtered from the results. But the code inadvertently also filtered
any file/directory which happened to match '..*'. This change fixes the
filter.
Fixes issue #11032 .
Signed-off-by: Jeremy Rand <jeremy@rand-family.com>
2023-03-21 16:13:10 +11:00
Neradoc
36e4dc2588
Adding 01space OLED 0.42 C3
2023-03-21 05:01:17 +01:00
Damien George
051e2900d9
stm32/boards/NUCLEO_H723ZG: Add new H723 board.
...
The following have been tested and are working:
- 550MHz CPU frequency
- UART REPL via ST-Link
- USB REPL and mass storage
- 3x LEDs and 1x user button
- Ethernet
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 14:05:59 +11:00
Damien George
d995c01042
stm32/boards: Add ld and af.csv for H723.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 14:02:49 +11:00
Damien George
13fcd8440e
stm32: Add support for STM32H723 MCUs.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 14:02:49 +11:00
Damien George
3187e4c7e7
stm32/mphalport: Update HAL version to 1.11.0 to match stm32lib.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 14:02:49 +11:00
Damien George
2e5f071020
lib/stm32lib: Update library to get H7 v1.11.0.
...
Signed-off-by: Damien George <damien@micropython.org>
2023-03-21 14:02:41 +11:00
MicroDev
7ee3f30c17
rewrite allocate_pystack
logic
2023-03-21 07:06:46 +05:30
Dan Halbert
c600429df7
Merge pull request #7759 from jposada202020/correcting_print_format_reference
...
removing need to use print format option.
2023-03-20 19:38:13 -04:00
foamyguy
0773a2bd6d
increment web_api_version
2023-03-20 17:32:00 -05:00
Scott Shawcroft
41a8ada327
Merge pull request #7750 from Neradoc/add-ttgo-tdisplay-esp32
...
Add Lilygo TTGO T-display ESP32 board
2023-03-20 14:40:16 -07:00
Scott Shawcroft
32a596df39
Merge pull request #7757 from adafruit/8.0.x
...
Merge latest 8.0.x changes
2023-03-20 14:34:59 -07:00
Scott Shawcroft
c54648caef
Merge pull request #7758 from jposada202020/correcting_vector_shape_location
...
correcting vectorshape location property
2023-03-20 14:34:04 -07:00
Scott Shawcroft
b75d99c5d7
Merge pull request #7745 from Neradoc/lilygo-twatch-v3-MAIN
...
Add Lilygo T-Watch 2020 V3 (ESP32)
2023-03-20 14:31:32 -07:00
jposada202020
f56c221a50
removing need to use print format option.
2023-03-20 17:23:49 -04:00
Scott Shawcroft
bdf592089a
Fix .bin, .hex and .uf2 with new linker sections
...
Also, format perfbench output in table with reference timing from
the host.
2023-03-20 14:02:57 -07:00
jposada202020
ace25e83ce
correcting vectorshape location property
2023-03-20 15:44:49 -04:00
robert-hh
711bac511e
rp2/main: Keep UART REPL with DEBUG=1 and MICROPY_HW_ENABLE_UART_REPL=1.
...
For builds with DEBUG=1 and MICROPY_HW_ENABLE_UART_REPL=1, calling
stdio_init_all() in main() detaches the UART input from REPL. This change
suppresses calling stdio_init_all() then.
2023-03-20 22:33:45 +11:00
robert-hh
be686e634e
rp2: Allow disabling USB via MICROPY_HW_ENABLE_USBDEV config.
...
Previously, setting MICROPY_HW_ENABLE_USBDEV to 0 caused build errors. The
change affects the nrf and samd ports as well, so MICROPY_HW_ENABLE_USBDEV
had to be explicitly enabled there.
The configuration options MICROPY_HW_ENABLE_USBDEV and
MICROPY_HW_ENABLE_UART_REPL are independent, and can be enabled or disabled
by a board.
Signed-off-by: Damien George <damien@micropython.org>
2023-03-20 22:33:45 +11:00
robert-hh
a2b31f968d
nrf/modules/machine: Support the freq=n argument for machine.I2C.
...
Mostly for compatibility. Effective values are 100000, 250000 and 400000.
The supplied values are mapped to these.
2023-03-20 16:27:44 +11:00
robert-hh
3bbf2ef3fb
nrf/modules/machine: Use a dedicated function for machine.idle().
...
Calling MICROPY_EVENT_POLL_HOOK. That allows Ctrl-C to break loops with
idle().
2023-03-20 16:15:43 +11:00
hathach
ce2c3d7dc5
revert deque(s)
2023-03-20 12:12:30 +07:00
robert-hh
2cd3a7b45c
nrf/nrfx_config: Use the UARTE definitions and drivers for the NRF52xx.
...
Suggested by @ricksorensen after testing. These match better the hardware
of the NRF52xx.
2023-03-20 16:12:16 +11:00