summaryrefslogtreecommitdiff
path: root/ports/renesas-ra/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/renesas-ra/uart.c')
-rw-r--r--ports/renesas-ra/uart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/renesas-ra/uart.c b/ports/renesas-ra/uart.c
index e41c68f0c..47c793e7d 100644
--- a/ports/renesas-ra/uart.c
+++ b/ports/renesas-ra/uart.c
@@ -33,6 +33,7 @@
#include "py/stream.h"
#include "py/mperrno.h"
#include "py/mphal.h"
+#include "py/ringbuf.h"
#include "shared/runtime/interrupt_char.h"
#include "shared/runtime/mpirq.h"
#include "uart.h"
@@ -75,6 +76,11 @@ static void uart_rx_cb(uint32_t ch, int d) {
(*keyex_cb[ch])(d);
}
#endif
+
+ #if MICROPY_HW_ENABLE_UART_REPL
+ ringbuf_put(&stdin_ringbuf, d);
+ #endif
+
// Check the flags to see if the user handler should be called
if (self->mp_irq_trigger) {
mp_irq_handler(self->mp_irq_obj);