mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
nrf: Option to enable Ctrl-C in NUS console.
Costs 136 bytes on a nRF51822.
This commit is contained in:
committed by
Damien George
parent
03b8429c0c
commit
a248db6916
@@ -44,11 +44,13 @@ NORETURN void mp_hal_raise(HAL_StatusTypeDef status) {
|
||||
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(mp_hal_status_to_errno_table[status])));
|
||||
}
|
||||
|
||||
#if !MICROPY_KBD_EXCEPTION
|
||||
void mp_hal_set_interrupt_char(int c) {
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (MICROPY_PY_BLE_NUS == 0)
|
||||
#if !MICROPY_PY_BLE_NUS
|
||||
int mp_hal_stdin_rx_chr(void) {
|
||||
for (;;) {
|
||||
if (MP_STATE_PORT(pyb_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(pyb_stdio_uart))) {
|
||||
|
||||
Reference in New Issue
Block a user