all: Rename mp_keyboard_interrupt to mp_sched_keyboard_interrupt.
To match mp_sched_exception() and mp_sched_schedule(). Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -42,7 +42,7 @@ static ringbuf_t uart_ringbuf = {uart_ringbuf_array, sizeof(uart_ringbuf_array),
|
||||
static void uart0_rx_intr_handler(void *para);
|
||||
|
||||
void soft_reset(void);
|
||||
void mp_keyboard_interrupt(void);
|
||||
void mp_sched_keyboard_interrupt(void);
|
||||
|
||||
/******************************************************************************
|
||||
* FunctionName : uart_config
|
||||
@@ -179,7 +179,7 @@ static void uart0_rx_intr_handler(void *para) {
|
||||
// directly on stdin_ringbuf, rather than going via uart_ringbuf
|
||||
if (uart_attached_to_dupterm) {
|
||||
if (RcvChar == mp_interrupt_char) {
|
||||
mp_keyboard_interrupt();
|
||||
mp_sched_keyboard_interrupt();
|
||||
} else {
|
||||
ringbuf_put(&stdin_ringbuf, RcvChar);
|
||||
}
|
||||
@@ -303,7 +303,7 @@ void ICACHE_FLASH_ATTR uart_task_handler(os_event_t *evt) {
|
||||
int c, ret = 0;
|
||||
while ((c = ringbuf_get(&stdin_ringbuf)) >= 0) {
|
||||
if (c == mp_interrupt_char) {
|
||||
mp_keyboard_interrupt();
|
||||
mp_sched_keyboard_interrupt();
|
||||
}
|
||||
ret = pyexec_event_repl_process_char(c);
|
||||
if (ret & PYEXEC_FORCED_EXIT) {
|
||||
|
||||
Reference in New Issue
Block a user