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.
pull/10021/head
robert-hh 2022-11-12 20:40:26 +01:00 zatwierdzone przez Damien George
rodzic 3cc359c204
commit 43fc133dbd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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))