summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-16 01:54:40 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-16 19:20:17 +0200
commitf12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a (patch)
treecfc9cddfdfccfc4129b88bf2c88515c7e7517252 /esp8266/esp_mphal.h
parent0abb5609b01c1b59d229bde8a0b3fc1df6dce060 (diff)
downloadmicropython-f12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a.tar.gz
micropython-f12ea7c7ed1ef97ee48c4356dbbc808cc2bdee4a.zip
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.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r--esp8266/esp_mphal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index e80ede9c91..369b375d9d 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -40,4 +40,7 @@ void HAL_Delay(uint32_t Delay);
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_