diff options
| author | Glenn Ruben Bakke | 2019-10-09 20:01:51 +0200 |
|---|---|---|
| committer | Glenn Ruben Bakke | 2019-10-10 20:21:07 +0200 |
| commit | 60b0b69f202f552c89c7ccc74a8304549f85c4fa (patch) | |
| tree | 76e9418e9a6db78f85921291e512c21268a5b360 /ports/nrf/mphalport.c | |
| parent | 1571120dc2c32d1eff451d6d52fde38dbec1d114 (diff) | |
nrf: Add tinyusb support for nrf52840.
Add nrf-port finyusb driver files. USB CDC can be activated
by board configuration files using the MICROPY_HW_USB_CDC.
Updating BLE driver, Makefile, nrfx-glue and main.c to plug
in the tinyusb stack.
Diffstat (limited to 'ports/nrf/mphalport.c')
| -rw-r--r-- | ports/nrf/mphalport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/nrf/mphalport.c b/ports/nrf/mphalport.c index bf8969708..b915c23e4 100644 --- a/ports/nrf/mphalport.c +++ b/ports/nrf/mphalport.c @@ -62,7 +62,9 @@ uintptr_t mp_hal_stdio_poll(uintptr_t poll_flags) { } return ret; } +#endif +#if !MICROPY_PY_BLE_NUS && !MICROPY_HW_USB_CDC int mp_hal_stdin_rx_chr(void) { for (;;) { if (MP_STATE_PORT(board_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(board_stdio_uart))) { |
