Commit e182f386 authored by Damien George's avatar Damien George

rp2/cyw43_configport: Implement cyw43_delay_ms as mp_hal_delay_ms.

They do the same thing.
Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 12ef8a5b
......@@ -116,12 +116,7 @@ static inline void cyw43_delay_us(uint32_t us) {
}
static inline void cyw43_delay_ms(uint32_t ms) {
uint32_t us = ms * 1000;
int32_t start = mp_hal_ticks_us();
while (mp_hal_ticks_us() - start < us) {
cyw43_yield();
MICROPY_EVENT_POLL_HOOK_FAST;
}
mp_hal_delay_ms(ms);
}
#define CYW43_EVENT_POLL_HOOK MICROPY_EVENT_POLL_HOOK_FAST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment