Skip to content

Commit b14d13e

Browse files
committed
nrf: Remove leftovers from stm32 code copy
1 parent c1924f3 commit b14d13e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

ports/nrf/mphalport.c

-13
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@
3333
#include "hal_uart.h"
3434

3535
#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-
}
4936

5037
#if (MICROPY_PY_BLE_NUS == 0)
5138
int mp_hal_stdin_rx_chr(void) {

0 commit comments

Comments
 (0)