circuitpython/ports
robert-hh de1f1dd164 shared/runtime/softtimer: Use consistently the same clock source.
Before, both uwTick and mp_hal_ticks_ms() were used as clock source.  That
assumes, that these two are synchronous and start with the same value,
which may be not the case for all ports.  If the lag between uwTick and
mp_hal_ticks_ms() is larger than the timer interval, the timer would either
rush up until the times are synchronous, or not start until uwTick wraps
over.

As suggested by @dpgeorge, MICROPY_SOFT_TIMER_TICKS_MS is now used in
softtimer.c, which has to be defined in a port's mpconfigport.h with
the variable that holds the SysTick counter.

Note that it's not possible to switch everything in softtimer.c to use
mp_hal_ticks_ms() because the logic in SysTick_Handler that schedules
soft_timer_handler() uses (eg on mimxrt) the uwTick variable directly
(named systick_ms there), and mp_hal_ticks_ms() uses a different source
timer.  Thus it is made fully configurable.
2023-02-16 12:59:48 +11:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
embed embed: Add new "embed" port which builds a simple C package. 2023-01-20 22:28:50 +11:00
esp32 top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
esp8266 top: Update Python formatting to black "2023 stable style". 2023-02-02 12:51:03 +11:00
mimxrt shared/runtime/softtimer: Use consistently the same clock source. 2023-02-16 12:59:48 +11:00
minimal minimal/Makefile: Set linker to $(CC). 2022-11-15 17:09:37 +11:00
nrf nrf/Makefile: Add support for BOSSAC flasher. 2023-02-16 12:46:23 +11:00
pic16bit all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
powerpc all: Use += rather than = everywhere for CFLAGS/LDFLAGS/LIBS. 2022-10-11 23:17:41 +11:00
qemu-arm shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
renesas-ra shared/runtime/softtimer: Use consistently the same clock source. 2023-02-16 12:59:48 +11:00
rp2 rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Use default aioble. 2023-02-16 12:32:03 +11:00
samd shared/runtime/softtimer: Use consistently the same clock source. 2023-02-16 12:59:48 +11:00
stm32 shared/runtime/softtimer: Use consistently the same clock source. 2023-02-16 12:59:48 +11:00
teensy shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
unix unix/main: Free pathbuf when there's an error opening a file. 2023-01-20 19:38:14 +11:00
webassembly webassembly/library: Extract and send data to print as UInt8Array. 2022-12-13 17:16:37 +11:00
windows windows/msvc: Fix module freezing. 2023-02-01 13:10:00 +11:00
zephyr zephyr: Rename machine I2C and SPI types consistently across ports. 2022-10-22 12:58:21 +11:00