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"
54
54
55
55
// Number of pins defined in PinDescription array
56
56
#define PINS_COUNT (26u)
57
- #define NUM_DIGITAL_PINS (14u )
57
+ #define NUM_DIGITAL_PINS (20u )
58
58
#define NUM_ANALOG_INPUTS (6u)
59
59
#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)
61
61
62
62
#define digitalPinToPort (P ) ( &(PORT->Group[g_APinDescription[P].ulPort]) )
63
63
#define digitalPinToBitMask (P ) ( 1 << g_APinDescription[P].ulPin )
Original file line number Diff line number Diff line change 37
37
38
38
// Number of pins defined in PinDescription array
39
39
#define PINS_COUNT (26u)
40
- #define NUM_DIGITAL_PINS (15u )
40
+ #define NUM_DIGITAL_PINS (22u )
41
41
#define NUM_ANALOG_INPUTS (7u)
42
42
#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)
44
44
45
45
// Low-level pin register query macros
46
46
// -----------------------------------
You can’t perform that action at this time.
0 commit comments