esp8266: Implement task-based, event-driven interface with UART.
This enables proper interfacing with underlying OS - MicroPython doesn't
run the main loop, OS does, MicroPython just gets called when some event
takes place.
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index e80ede9..369b375 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -40,4 +40,7 @@
void mp_hal_set_interrupt_char(int c);
uint32_t mp_hal_get_cpu_freq(void);
+#define UART_TASK_ID 0
+void uart_task_init();
+
#endif // _INCLUDED_MPHAL_H_