summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r--esp8266/esp_mphal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index 873bfec371..9a08f5a14d 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -44,5 +44,6 @@ uint32_t mp_hal_get_cpu_freq(void);
void uart_task_init();
void ets_event_poll(void);
+#define ETS_POLL_WHILE(cond) { while (cond) ets_event_poll(); }
#endif // _INCLUDED_MPHAL_H_