diff options
author | Arturo Guadalupi <a.guadalupi@arduino.cc> | 2016-07-07 17:51:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-07 17:51:31 +0200 |
commit | 5665f869770fa5be65eb8e48651199d14dccdf52 (patch) | |
tree | f30bed019a86ec810a44119df1b307ae308d4fc8 /variants/gemma | |
parent | 0c8151db1a3da4382ebb913c12cbfea833970191 (diff) | |
parent | 257ee3fd67f70a67b9568dfdbbe7677d06c13ff4 (diff) |
Merge pull request #4814 from sandeepmistry/avr-pin_
Add PIN_* defines to AVR variants
Diffstat (limited to 'variants/gemma')
-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 ) |