summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/ets_alt_task.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-21 23:04:11 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-11 09:13:31 +0700
commit97c262890058896b0acd735b54d66d9ea19c3a53 (patch)
treef6a0d9674231ad785a63710c792dfad5aed1f7ec /esp8266/ets_alt_task.h
parent9ae51257bd40b1f010c2abbfb0a38b6d44860ea8 (diff)
downloadmicropython-97c262890058896b0acd735b54d66d9ea19c3a53.tar.gz
micropython-97c262890058896b0acd735b54d66d9ea19c3a53.zip
esp8266: Add alternative event loop implementation.
This implementation provides the same interface and uses the same datastructures as used by BootROM, i.e. is a drop-in replacement for it. But it offers one advantage: it allows to run single iteration of event-pumping loop. Original BootROM function are renamed, prefixed with underscore. There's a switch which allows to use forward calls to them, for compatibility testing. The implementation also includes workarounds for hardware timer handler, and these workarounds may be SDK version specific.
Diffstat (limited to 'esp8266/ets_alt_task.h')
-rw-r--r--esp8266/ets_alt_task.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/esp8266/ets_alt_task.h b/esp8266/ets_alt_task.h
new file mode 100644
index 0000000000..c423995841
--- /dev/null
+++ b/esp8266/ets_alt_task.h
@@ -0,0 +1 @@
+bool ets_loop_iter(void);