File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ extern "C"
5454
5555// Number of pins defined in PinDescription array
5656#define PINS_COUNT (26u)
57- #define NUM_DIGITAL_PINS (14u )
57+ #define NUM_DIGITAL_PINS (20u )
5858#define NUM_ANALOG_INPUTS (6u)
5959#define NUM_ANALOG_OUTPUTS (1u)
60- #define analogInputToDigitalPin (p ) ((p < NUM_ANALOG_INPUTS ) ? (p) + NUM_DIGITAL_PINS : -1)
60+ #define analogInputToDigitalPin (p ) ((p < 6u ) ? (p) + 14u : -1)
6161
6262#define digitalPinToPort (P ) ( &(PORT->Group[g_APinDescription[P].ulPort]) )
6363#define digitalPinToBitMask (P ) ( 1 << g_APinDescription[P].ulPin )
Original file line number Diff line number Diff line change 3737
3838// Number of pins defined in PinDescription array
3939#define PINS_COUNT (26u)
40- #define NUM_DIGITAL_PINS (15u )
40+ #define NUM_DIGITAL_PINS (22u )
4141#define NUM_ANALOG_INPUTS (7u)
4242#define NUM_ANALOG_OUTPUTS (1u)
43- #define analogInputToDigitalPin (p ) ((p < NUM_ANALOG_INPUTS ) ? (p) + NUM_DIGITAL_PINS : -1)
43+ #define analogInputToDigitalPin (p ) ((p < 7u ) ? (p) + 15u : -1)
4444
4545// Low-level pin register query macros
4646// -----------------------------------
You can’t perform that action at this time.
0 commit comments