diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-08-25 12:27:49 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-08-26 12:48:04 +1000 |
commit | 986ad6bf1d35cbc6f8073e847aa6b87156eefc4b (patch) | |
tree | f43f5f500c8890b8fa95da3f0507895a4bb69dff /drivers/cc3000/inc/socket.h | |
parent | 492ba5eaf2c6e1e9fe8e31fd2e8f47fac6188673 (diff) | |
download | micropython-986ad6bf1d35cbc6f8073e847aa6b87156eefc4b.tar.gz micropython-986ad6bf1d35cbc6f8073e847aa6b87156eefc4b.zip |
stm32/boardctrl: Use HAL_Delay instead of mp_hal_delay_ms.
Not safe to use mp_hal_delay_ms before boot if threading is enabled,
because threading will not have been initialised, and
MICROPY_EVENT_POLL_HOOK assumes threading is initialised.
HAL_Delay doesn't call MICROPY_EVENT_POLL_HOOK, but is still
power-efficient like mp_hal_delay_ms (unlike mp_hal_delay_us).
Fixes #7816.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'drivers/cc3000/inc/socket.h')
0 files changed, 0 insertions, 0 deletions