diff options
| author | Damien George | 2020-09-08 13:52:56 +1000 |
|---|---|---|
| committer | Damien George | 2020-09-09 00:13:34 +1000 |
| commit | 27e117307d7d5b63955940866e6094bedb7d299e (patch) | |
| tree | 70277e489b8dd5867abf868197eb064c8c0082da | |
| parent | 75344af4cada48b8b044ae35d0e62c38c601d899 (diff) | |
nrf: Remove unnecessary includes of mpconfigport.h and its header guard.
The mpconfigport.h file is an internal header and should only ever be
included once by mpconfig.h.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/nrf/drivers/bluetooth/ble_drv.c | 1 | ||||
| -rw-r--r-- | ports/nrf/modules/uos/microbitfs.c | 1 | ||||
| -rw-r--r-- | ports/nrf/mpconfigport.h | 5 |
3 files changed, 0 insertions, 7 deletions
diff --git a/ports/nrf/drivers/bluetooth/ble_drv.c b/ports/nrf/drivers/bluetooth/ble_drv.c index 1a64cdfbd..3a15025cb 100644 --- a/ports/nrf/drivers/bluetooth/ble_drv.c +++ b/ports/nrf/drivers/bluetooth/ble_drv.c @@ -32,7 +32,6 @@ #include "py/runtime.h" #include "ble_drv.h" -#include "mpconfigport.h" #include "nrf_sdm.h" #include "ble_gap.h" #include "ble.h" // sd_ble_uuid_encode diff --git a/ports/nrf/modules/uos/microbitfs.c b/ports/nrf/modules/uos/microbitfs.c index 7f16372cf..e8628f494 100644 --- a/ports/nrf/modules/uos/microbitfs.c +++ b/ports/nrf/modules/uos/microbitfs.c @@ -36,7 +36,6 @@ #include "py/stream.h" #include "py/runtime.h" #include "extmod/vfs.h" -#include "mpconfigport.h" #if MICROPY_MBFS diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h index 1197df016..76bb6d7bd 100644 --- a/ports/nrf/mpconfigport.h +++ b/ports/nrf/mpconfigport.h @@ -24,9 +24,6 @@ * THE SOFTWARE. */ -#ifndef NRF5_MPCONFIGPORT_H__ -#define NRF5_MPCONFIGPORT_H__ - #include <mpconfigboard.h> #if defined(NRF51822) @@ -342,5 +339,3 @@ extern const struct _mp_obj_module_t ble_module; #include <alloca.h> #define MICROPY_PIN_DEFS_PORT_H "pin_defs_nrf5.h" - -#endif |
