summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-06-26 10:52:04 -0700
committerGitHub <noreply@github.com>2018-06-26 10:52:04 -0700
commitd7d132d5a32b871bde0eff5e5a05925e11d15807 (patch)
treeb50aaa27af0052ccabf0042b00f6ef81c428ecfe
parent479dbfe72048c1afe448d5f7ae02f94d3c2dee09 (diff)
parentb14d13e318489cfd6850387be526ce293a200dcb (diff)
Merge pull request #960 from arturo182/nrf_stm_cleanup
nrf: Remove leftovers from stm32 code copy
-rw-r--r--ports/nrf/mphalport.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/ports/nrf/mphalport.c b/ports/nrf/mphalport.c
index 957d3535d..1d4e795c0 100644
--- a/ports/nrf/mphalport.c
+++ b/ports/nrf/mphalport.c
@@ -33,19 +33,6 @@
#include "hal_uart.h"
#define UART_INSTANCE UART_BASE(0)
-FIL* boot_output_file;
-
-// this table converts from HAL_StatusTypeDef to POSIX errno
-const byte mp_hal_status_to_errno_table[4] = {
- [HAL_OK] = 0,
- [HAL_ERROR] = MP_EIO,
- [HAL_BUSY] = MP_EBUSY,
- [HAL_TIMEOUT] = MP_ETIMEDOUT,
-};
-
-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_PY_BLE_NUS == 0)
int mp_hal_stdin_rx_chr(void) {