esp8266/esp_mphal: Add tentative change to mp_hal_stdin_rx_chr() to wait IRQ.
Instead of busy-looping waiting for UART input. Not enabled by default, needs more testing.
This commit is contained in:
parent
3fe047f08f
commit
4b3f1d712b
@ -60,7 +60,14 @@ int mp_hal_stdin_rx_chr(void) {
|
|||||||
if (c != -1) {
|
if (c != -1) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
|
// Idles CPU but need more testing before enabling
|
||||||
|
if (!ets_loop_iter()) {
|
||||||
|
asm("waiti 0");
|
||||||
|
}
|
||||||
|
#else
|
||||||
mp_hal_delay_us(1);
|
mp_hal_delay_us(1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user