summaryrefslogtreecommitdiff
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-30 11:35:03 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-30 11:35:03 +0300
commit9475cc59e63c451f9d3fd4bad3290a55785b02be (patch)
treec87eed7ecdb33cfdec6a57ee1155c3d0f7416c60 /esp8266/esp_mphal.h
parent259967238423f2b11479dadbab6eae77cd038096 (diff)
esp8266: Support synchronous wifi scanning.
That is: aps = if0.scan() TODO: make sure that returned list has tuple with values in "standard" order (whatever that standard is).
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 873bfec37..9a08f5a14 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_