diff options
author | Sandeep Mistry <s.mistry@arduino.cc> | 2016-04-04 15:41:38 -0400 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2016-04-04 15:41:38 -0400 |
commit | 257ee3fd67f70a67b9568dfdbbe7677d06c13ff4 (patch) | |
tree | d2f7e2cd2a6082ed913bb710eba563a0a9d7e232 /variants/gemma/pins_arduino.h | |
parent | 3616dadb3ac7af6edcc8194916d66cf4445ebf9f (diff) |
Add PIN_* defines to AVR variants
Diffstat (limited to 'variants/gemma/pins_arduino.h')
-rw-r--r-- | variants/gemma/pins_arduino.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/variants/gemma/pins_arduino.h b/variants/gemma/pins_arduino.h index b6aed39..e0ec217 100644 --- a/variants/gemma/pins_arduino.h +++ b/variants/gemma/pins_arduino.h @@ -46,10 +46,15 @@ #define NUM_ANALOG_INPUTS 1 #define LED_BUILTIN 1 -static const uint8_t A0 = 6; -static const uint8_t A1 = 7; -static const uint8_t A2 = 8; -static const uint8_t A3 = 9; +#define PIN_A0 (6) +#define PIN_A1 (7) +#define PIN_A2 (8) +#define PIN_A3 (9) + +static const uint8_t A0 = PIN_A0; +static const uint8_t A1 = PIN_A1; +static const uint8_t A2 = PIN_A2; +static const uint8_t A3 = PIN_A3; #define digitalPinToPCICR(p) ( ((p) >= 0 && (p) <= 4) ? (&GIMSK) : ((uint8_t *)0) ) #define digitalPinToPCICRbit(p) ( PCIE ) |