We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1924f3 commit b14d13eCopy full SHA for b14d13e
ports/nrf/mphalport.c
@@ -33,19 +33,6 @@
33
#include "hal_uart.h"
34
35
#define UART_INSTANCE UART_BASE(0)
36
-FIL* boot_output_file;
37
-
38
-// this table converts from HAL_StatusTypeDef to POSIX errno
39
-const byte mp_hal_status_to_errno_table[4] = {
40
- [HAL_OK] = 0,
41
- [HAL_ERROR] = MP_EIO,
42
- [HAL_BUSY] = MP_EBUSY,
43
- [HAL_TIMEOUT] = MP_ETIMEDOUT,
44
-};
45
46
-NORETURN void mp_hal_raise(HAL_StatusTypeDef status) {
47
- nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(mp_hal_status_to_errno_table[status])));
48
-}
49
50
#if (MICROPY_PY_BLE_NUS == 0)
51
int mp_hal_stdin_rx_chr(void) {
0 commit comments