diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-06-01 01:27:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-06-01 23:57:19 +0300 |
commit | 2fc1e643199a97cd38142aaec80547227197db98 (patch) | |
tree | 69e2843d882b025a9354d86465a2792a16410c70 /esp8266/esp_mphal.h | |
parent | 3ac2d06bd13f1cedb8242eaacc6c608ac08c3520 (diff) | |
download | micropython-2fc1e643199a97cd38142aaec80547227197db98.tar.gz micropython-2fc1e643199a97cd38142aaec80547227197db98.zip |
esp8266: Fix lost chars problem when block-xfering data (e.g., when pasting).
Pasting more or less sizable text into ESP8266 REPL leads to random chars
missing in the received input. Apparent cause is that using RTOS messages
to pass individual chars one by one is to slow and leads to UART FIFO
overflow. So, instead of passing chars one by one, use RTOS msg to signal
that input data is available in FIFO, and then let task handler to read
data directly from FIFO.
With this change, lost chars problem is gone, but the pasted text is
truncated after some position. At least 500 chars can be pasted reliably
(at 115200 baud), but 1K never pastes completely.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r-- | esp8266/esp_mphal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h index 28f2ed53a7..617a0f8c11 100644 --- a/esp8266/esp_mphal.h +++ b/esp8266/esp_mphal.h @@ -27,6 +27,9 @@ #ifndef _INCLUDED_MPHAL_H_ #define _INCLUDED_MPHAL_H_ +// SDK functions not declared in SDK itself +void ets_isr_mask(unsigned); + void mp_hal_init(void); void mp_hal_feed_watchdog(void); void mp_hal_udelay(uint32_t); |