samd/mpconfigport: Use __WFE() in MICROPY_EVENT_POLL_HOOK.

Like WFI, WFE also responds to a hardware interrupt, and using WFE speeds
up at least spi.read().  Power consumption at an idle REPL is unchanged.
This commit is contained in:
robert-hh 2022-11-12 20:40:26 +01:00 committed by Damien George
parent 3cc359c204
commit 43fc133dbd
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ __attribute__((always_inline)) static inline uint32_t disable_irq(void) {
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
__WFI(); \
__WFE(); \
} while (0);
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p) | 1))