aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky2016-03-11 10:41:10 +0700
committerPaul Sokolovsky2016-03-11 10:41:10 +0700
commit4c2cb7e384c96ab36144a616e2bdfe8d6dd0d867 (patch)
treeeeab50a4e88ca47aa13e8ab02eb42dba3112f31e
parent6e5c31c947497d56c7bbc792e746399e3e34dc30 (diff)
esp8266: Define MICROPY_EVENT_POLL_HOOK for the port.
-rw-r--r--esp8266/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 738a3020f..744cc2d82 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -52,6 +52,8 @@
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
#define MICROPY_MODULE_FROZEN (1)
+#define MICROPY_EVENT_POLL_HOOK {ets_event_poll();}
+
// type definitions for the specific machine
#define BYTES_PER_WORD (4)