mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Port analogInputToDigitalPin macro to SAM core
This commit is contained in:
parent
509721213b
commit
aabdb852b5
@ -58,6 +58,7 @@ extern "C"{
|
||||
#define PINS_COUNT (79u)
|
||||
#define NUM_DIGITAL_PINS (54u)
|
||||
#define NUM_ANALOG_INPUTS (12u)
|
||||
#define analogInputToDigitalPin(p) ((p < NUM_ANALOG_INPUTS) ? (p) + NUM_DIGITAL_PINS : -1)
|
||||
|
||||
#define digitalPinToPort(P) ( g_APinDescription[P].pPort )
|
||||
#define digitalPinToBitMask(P) ( g_APinDescription[P].ulPin )
|
||||
|
Loading…
x
Reference in New Issue
Block a user