diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-01 14:02:36 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-01 14:02:36 +0300 |
commit | 785cf9a61f373ee871b4181c499d9d99ad081615 (patch) | |
tree | e33d4e6811c616e03e0e0e71c2f9ffee259c1903 /esp8266/uart.c | |
parent | 777232c9a5ce15ca7c7b0b3c52dd2a3b00bb1acc (diff) |
esp8266: Support dedicated REPL loop (aka pull-style).
Event-driven loop (push-style) is still supported and default (controlled
by MICROPY_REPL_EVENT_DRIVEN setting, as expected).
Dedicated loop worked even without adding ets_loop_iter(), though that
needs to be revisited later.
Diffstat (limited to 'esp8266/uart.c')
-rw-r--r-- | esp8266/uart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/esp8266/uart.c b/esp8266/uart.c index 9b2bfb4c8..bfc380ae4 100644 --- a/esp8266/uart.c +++ b/esp8266/uart.c @@ -233,6 +233,7 @@ void soft_reset(void); void mp_keyboard_interrupt(void); int interrupt_char; +#if MICROPY_REPL_EVENT_DRIVEN void uart_task_handler(os_event_t *evt) { if (pyexec_repl_active) { // TODO: Just returning here isn't exactly right. @@ -264,3 +265,4 @@ void uart_task_handler(os_event_t *evt) { void uart_task_init() { system_os_task(uart_task_handler, UART_TASK_ID, uart_evt_queue, sizeof(uart_evt_queue) / sizeof(*uart_evt_queue)); } +#endif |