summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-05-02 16:59:57 +1000
committerDamien George <damien.p.george@gmail.com>2020-05-08 23:44:57 +1000
commit67fca2b7152c6db14ff8a98c40b8121204c9f963 (patch)
tree59203f1ff71033133e5b4cd76e50bbeb6cae11e3
parentf2218c2fbdf3d5267a6d116a980a67b22c58c4b6 (diff)
downloadmicropython-67fca2b7152c6db14ff8a98c40b8121204c9f963.tar.gz
micropython-67fca2b7152c6db14ff8a98c40b8121204c9f963.zip
esp8266/uart: Move a few functions from iRAM to iROM.
They call functions in iROM so do not need to be in iRAM.
-rw-r--r--ports/esp8266/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/uart.c b/ports/esp8266/uart.c
index 64bc78eb17..7d88555c05 100644
--- a/ports/esp8266/uart.c
+++ b/ports/esp8266/uart.c
@@ -200,7 +200,7 @@ static void uart0_rx_intr_handler(void *para) {
// Waits at most timeout microseconds for at least 1 char to become ready for reading.
// Returns true if something available, false if not.
-bool uart_rx_wait(uint32_t timeout_us) {
+bool ICACHE_FLASH_ATTR uart_rx_wait(uint32_t timeout_us) {
uint32_t start = system_get_time();
for (;;) {
if (uart_ringbuf.iget != uart_ringbuf.iput) {
@@ -288,7 +288,7 @@ void ICACHE_FLASH_ATTR uart0_set_rxbuf(uint8 *buf, int len) {
#include "lib/utils/pyexec.h"
#if MICROPY_REPL_EVENT_DRIVEN
-void uart_task_handler(os_event_t *evt) {
+void ICACHE_FLASH_ATTR uart_task_handler(os_event_t *evt) {
if (pyexec_repl_active) {
// TODO: Just returning here isn't exactly right.
// What really should be done is something like