summaryrefslogtreecommitdiff
path: root/ports/nrf/peripherals
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-12-30 22:49:20 -0500
committerDan Halbert <halbert@halwitz.org>2018-12-30 22:49:20 -0500
commitb6b5ed9c893f1d0ecdad03e18596a5bc33a08883 (patch)
treea9212722fd2d05ca80bfb21c5bf14e312f104e7b /ports/nrf/peripherals
parent1dc3957e729a7bf4d6476c587f140e3d42fd1bd5 (diff)
Remove nRF52832 support
Diffstat (limited to 'ports/nrf/peripherals')
-rw-r--r--ports/nrf/peripherals/nrf/nrf52832/pins.c65
-rw-r--r--ports/nrf/peripherals/nrf/nrf52832/pins.h63
-rw-r--r--ports/nrf/peripherals/nrf/nrf52832/power.c30
-rw-r--r--ports/nrf/peripherals/nrf/pins.h6
4 files changed, 1 insertions, 163 deletions
diff --git a/ports/nrf/peripherals/nrf/nrf52832/pins.c b/ports/nrf/peripherals/nrf/nrf52832/pins.c
deleted file mode 100644
index fdfa766ec..000000000
--- a/ports/nrf/peripherals/nrf/nrf52832/pins.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * This file is part of the MicroPython project, http://micropython.org/
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2018 Dan Halbert for Adafruit Industries
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-// DO NOT include this file directly. Use shared-bindings/microcontroller/Pin.h instead to ensure
-// that all necessary includes are already included.
-
-#include "py/obj.h"
-#include "py/mphal.h"
-#include "nrf/pins.h"
-
-const mcu_pin_obj_t pin_P0_00 = PIN(P0_00, 0, 0, 0);
-const mcu_pin_obj_t pin_P0_01 = PIN(P0_01, 0, 1, 0);
-const mcu_pin_obj_t pin_P0_02 = PIN(P0_02, 0, 2, SAADC_CH_PSELP_PSELP_AnalogInput0);
-const mcu_pin_obj_t pin_P0_03 = PIN(P0_03, 0, 3, SAADC_CH_PSELP_PSELP_AnalogInput1);
-const mcu_pin_obj_t pin_P0_04 = PIN(P0_04, 0, 4, SAADC_CH_PSELP_PSELP_AnalogInput2);
-const mcu_pin_obj_t pin_P0_05 = PIN(P0_05, 0, 5, SAADC_CH_PSELP_PSELP_AnalogInput3);
-const mcu_pin_obj_t pin_P0_06 = PIN(P0_06, 0, 6, 0);
-const mcu_pin_obj_t pin_P0_07 = PIN(P0_07, 0, 7, 0);
-const mcu_pin_obj_t pin_P0_08 = PIN(P0_08, 0, 8, 0);
-const mcu_pin_obj_t pin_P0_09 = PIN(P0_09, 0, 9, 0);
-const mcu_pin_obj_t pin_P0_10 = PIN(P0_10, 0, 10, 0);
-const mcu_pin_obj_t pin_P0_11 = PIN(P0_11, 0, 11, 0);
-const mcu_pin_obj_t pin_P0_12 = PIN(P0_12, 0, 12, 0);
-const mcu_pin_obj_t pin_P0_13 = PIN(P0_13, 0, 13, 0);
-const mcu_pin_obj_t pin_P0_14 = PIN(P0_14, 0, 14, 0);
-const mcu_pin_obj_t pin_P0_15 = PIN(P0_15, 0, 15, 0);
-const mcu_pin_obj_t pin_P0_16 = PIN(P0_16, 0, 16, 0);
-const mcu_pin_obj_t pin_P0_17 = PIN(P0_17, 0, 17, 0);
-const mcu_pin_obj_t pin_P0_18 = PIN(P0_18, 0, 18, 0);
-const mcu_pin_obj_t pin_P0_19 = PIN(P0_19, 0, 19, 0);
-const mcu_pin_obj_t pin_P0_20 = PIN(P0_20, 0, 20, 0);
-const mcu_pin_obj_t pin_P0_21 = PIN(P0_21, 0, 21, 0);
-const mcu_pin_obj_t pin_P0_22 = PIN(P0_22, 0, 22, 0);
-const mcu_pin_obj_t pin_P0_23 = PIN(P0_23, 0, 23, 0);
-const mcu_pin_obj_t pin_P0_24 = PIN(P0_24, 0, 24, 0);
-const mcu_pin_obj_t pin_P0_25 = PIN(P0_25, 0, 25, 0);
-const mcu_pin_obj_t pin_P0_26 = PIN(P0_26, 0, 26, 0);
-const mcu_pin_obj_t pin_P0_27 = PIN(P0_27, 0, 27, 0);
-const mcu_pin_obj_t pin_P0_28 = PIN(P0_28, 0, 28, SAADC_CH_PSELP_PSELP_AnalogInput4);
-const mcu_pin_obj_t pin_P0_29 = PIN(P0_29, 0, 29, SAADC_CH_PSELP_PSELP_AnalogInput5);
-const mcu_pin_obj_t pin_P0_30 = PIN(P0_30, 0, 30, SAADC_CH_PSELP_PSELP_AnalogInput6);
-const mcu_pin_obj_t pin_P0_31 = PIN(P0_31, 0, 31, SAADC_CH_PSELP_PSELP_AnalogInput7);
diff --git a/ports/nrf/peripherals/nrf/nrf52832/pins.h b/ports/nrf/peripherals/nrf/nrf52832/pins.h
deleted file mode 100644
index f8ef85ad0..000000000
--- a/ports/nrf/peripherals/nrf/nrf52832/pins.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * This file is part of the MicroPython project, http://micropython.org/
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2018 by Dan Halbert for Adafruit Industries
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#ifndef MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52832_PINS_H
-#define MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52832_PINS_H
-
-extern const mcu_pin_obj_t pin_P0_00;
-extern const mcu_pin_obj_t pin_P0_01;
-extern const mcu_pin_obj_t pin_P0_02;
-extern const mcu_pin_obj_t pin_P0_03;
-extern const mcu_pin_obj_t pin_P0_04;
-extern const mcu_pin_obj_t pin_P0_05;
-extern const mcu_pin_obj_t pin_P0_06;
-extern const mcu_pin_obj_t pin_P0_07;
-extern const mcu_pin_obj_t pin_P0_08;
-extern const mcu_pin_obj_t pin_P0_09;
-extern const mcu_pin_obj_t pin_P0_10;
-extern const mcu_pin_obj_t pin_P0_11;
-extern const mcu_pin_obj_t pin_P0_12;
-extern const mcu_pin_obj_t pin_P0_13;
-extern const mcu_pin_obj_t pin_P0_14;
-extern const mcu_pin_obj_t pin_P0_15;
-extern const mcu_pin_obj_t pin_P0_16;
-extern const mcu_pin_obj_t pin_P0_17;
-extern const mcu_pin_obj_t pin_P0_18;
-extern const mcu_pin_obj_t pin_P0_19;
-extern const mcu_pin_obj_t pin_P0_20;
-extern const mcu_pin_obj_t pin_P0_21;
-extern const mcu_pin_obj_t pin_P0_22;
-extern const mcu_pin_obj_t pin_P0_23;
-extern const mcu_pin_obj_t pin_P0_24;
-extern const mcu_pin_obj_t pin_P0_25;
-extern const mcu_pin_obj_t pin_P0_26;
-extern const mcu_pin_obj_t pin_P0_27;
-extern const mcu_pin_obj_t pin_P0_28;
-extern const mcu_pin_obj_t pin_P0_29;
-extern const mcu_pin_obj_t pin_P0_30;
-extern const mcu_pin_obj_t pin_P0_31;
-
-#endif // MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52832_PINS_H
diff --git a/ports/nrf/peripherals/nrf/nrf52832/power.c b/ports/nrf/peripherals/nrf/nrf52832/power.c
deleted file mode 100644
index 942524f53..000000000
--- a/ports/nrf/peripherals/nrf/nrf52832/power.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is part of the Micro Python project, http://micropython.org/
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2018 Dan Halbert for Adafruit Industries
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-#include "nrfx.h"
-
-void nrf_peripherals_power_init(void) {
-}
diff --git a/ports/nrf/peripherals/nrf/pins.h b/ports/nrf/peripherals/nrf/pins.h
index 33462d711..3a4c99579 100644
--- a/ports/nrf/peripherals/nrf/pins.h
+++ b/ports/nrf/peripherals/nrf/pins.h
@@ -56,11 +56,7 @@ extern const mp_obj_type_t mcu_pin_type;
// Use illegal pin value to mark unassigned pins.
#define NO_PIN 0xff
-// Choose based on chip, but not specifically revision (e.g., not NRF52832_XXAA)
-#ifdef NRF52832
-#include "nrf52832/pins.h"
-#endif
-
+// Choose based on chip, but not specifically revision (e.g., not NRF52840_XXAA)
#ifdef NRF52840
#include "nrf52840/pins.h"
#endif