summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/hal/inc/stm32f4xx_hal_rtc.h
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-05-09 15:59:16 +1000
committerDamien George <damien@micropython.org>2025-05-12 16:30:46 +1000
commit69993daa5c2eae6055f0b3b2330e95e78d6e3738 (patch)
tree94954f0e25508cc32316a186683ea32b97a2964a /stmhal/hal/inc/stm32f4xx_hal_rtc.h
parent977fd94856dfb909b816a93e9d962d4c467f253a (diff)
downloadmicropython-master.tar.gz
micropython-master.zip
rp2/modmachine: Add mutual exclusion for machine.lightsleep().HEADmaster
There's no specified behaviour for what should happen if both CPUs call `lightsleep()` together, but the latest changes could cause a permanent hang due to a race in the timer cleanup code. Add a flag to prevent hangs if two threads accidentally lightsleep, at least. This allows the new lightsleep test to pass on RPI_PICO and RPI_PICO2, and even have much tighter time deltas. However, the test still fails on wireless boards where the lwIP tick wakes them up too frequently. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'stmhal/hal/inc/stm32f4xx_hal_rtc.h')
0 files changed, 0 insertions, 0 deletions