File tree 2 files changed +8
-11
lines changed
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,6 @@ void yield(void);
51
51
extern void setup ( void ) ;
52
52
extern void loop ( void ) ;
53
53
54
- // Get the bit location within the hardware port of the given virtual pin.
55
- // This comes from the pins_*.c file for the active board configuration.
56
- //
57
- #define digitalPinToPort (P ) ( g_APinDescription[P].pPort )
58
- #define digitalPinToBitMask (P ) ( g_APinDescription[P].ulPin )
59
- #define digitalPinToTimer (P ) ( )
60
- //#define analogInPinToBit(P) ( )
61
- #define portOutputRegister (port ) ( &(port->PIO_ODSR) )
62
- #define portInputRegister (port ) ( &(port->PIO_PDSR) )
63
- //#define portModeRegister(P) ( )
64
-
65
54
//#define NOT_A_PIN 0 // defined in pio.h/EPioType
66
55
#define NOT_A_PORT 0
67
56
Original file line number Diff line number Diff line change @@ -59,6 +59,14 @@ extern "C"{
59
59
#define NUM_DIGITAL_PINS (54u)
60
60
#define NUM_ANALOG_INPUTS (12u)
61
61
62
+ #define digitalPinToPort (P ) ( g_APinDescription[P].pPort )
63
+ #define digitalPinToBitMask (P ) ( g_APinDescription[P].ulPin )
64
+ #define digitalPinToTimer (P ) ( )
65
+ //#define analogInPinToBit(P) ( )
66
+ #define portOutputRegister (port ) ( &(port->PIO_ODSR) )
67
+ #define portInputRegister (port ) ( &(port->PIO_PDSR) )
68
+ //#define portModeRegister(P) ( )
69
+
62
70
// Interrupts
63
71
#define digitalPinToInterrupt (p ) ((p) < NUM_DIGITAL_PINS ? (p) : -1)
64
72
You can’t perform that action at this time.
0 commit comments