File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ extern "C"
5757#define NUM_DIGITAL_PINS (14u)
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)
6061
6162#define digitalPinToPort (P ) ( &(PORT->Group[g_APinDescription[P].ulPort]) )
6263#define digitalPinToBitMask (P ) ( 1 << g_APinDescription[P].ulPin )
Original file line number Diff line number Diff line change 4040#define NUM_DIGITAL_PINS (15u)
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)
4344
4445// Low-level pin register query macros
4546// -----------------------------------
You can’t perform that action at this time.
0 commit comments