summaryrefslogtreecommitdiff
path: root/ports/nrf/common-hal/microcontroller/Pin.h
diff options
context:
space:
mode:
authorarturo182 <arturo182@tlen.pl>2018-06-20 23:26:32 +0200
committerarturo182 <arturo182@tlen.pl>2018-06-20 23:26:32 +0200
commitc2d4d0a10bb97819ad94b7b770f59f8b9df64c41 (patch)
tree845aa669e6a589de4f3306427e9ea53cde080d25 /ports/nrf/common-hal/microcontroller/Pin.h
parentff918556cdde90119339c35093911d70eec43406 (diff)
nrf: Simplify pin generation and definition
This commit cleans up the pin generation code, all the pins and their AF (only ADC, for now) are specified in nrf52_af.csv and board use their own csv file to specify which pins are available on that board and if they have any special names.
Diffstat (limited to 'ports/nrf/common-hal/microcontroller/Pin.h')
-rw-r--r--ports/nrf/common-hal/microcontroller/Pin.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ports/nrf/common-hal/microcontroller/Pin.h b/ports/nrf/common-hal/microcontroller/Pin.h
index d7994bc0c..b04151184 100644
--- a/ports/nrf/common-hal/microcontroller/Pin.h
+++ b/ports/nrf/common-hal/microcontroller/Pin.h
@@ -27,14 +27,11 @@
#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H
#define MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H
+#include "pin.h"
#include "py/mphal.h"
-#include "modules/machine/pin.h"
-//typedef pin_obj_t mcu_pin_obj_t;
#define mcu_pin_obj_t pin_obj_t
void reset_all_pins(void);
void reset_pin(uint8_t pin);
-//void claim_pin(const mcu_pin_obj_t* pin);
-
#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H