nrf: Fix build BLE NUS and LTO=0

pull/1/head
Daniel Thompson 2020-02-01 13:01:54 +00:00
parent e668ed3ed3
commit 3886bb16d1
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ extern const unsigned char mp_hal_status_to_errno_table[4];
NORETURN void mp_hal_raise(HAL_StatusTypeDef status);
void mp_hal_set_interrupt_char(int c); // -1 to disable
#if MICROPY_PY_BLE_NUS
#define mp_hal_stdio_poll(poll_flags) (0)
#endif
int mp_hal_stdin_rx_chr(void);
void mp_hal_stdout_tx_str(const char *str);