diff --git a/ports/rp2/modmachine.c b/ports/rp2/modmachine.c index 29a8dbed2c8f6..4c428cbddf3ed 100644 --- a/ports/rp2/modmachine.c +++ b/ports/rp2/modmachine.c @@ -111,7 +111,7 @@ STATIC mp_obj_t machine_freq(size_t n_args, const mp_obj_t *args) { STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_freq_obj, 0, 1, machine_freq); STATIC mp_obj_t machine_idle(void) { - best_effort_wfe_or_timeout(make_timeout_time_ms(1)); + __wfe(); return mp_const_none; } STATIC MP_DEFINE_CONST_FUN_OBJ_0(machine_idle_obj, machine_idle); diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index 0a6331273434d..84a961db43e8a 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -274,7 +274,7 @@ extern void mp_thread_end_atomic_section(uint32_t); #define MICROPY_EVENT_POLL_HOOK \ do { \ MICROPY_EVENT_POLL_HOOK_FAST; \ - best_effort_wfe_or_timeout(make_timeout_time_ms(1)); \ + __wfe(); \ } while (0); #define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p) | 1)) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy