Skip to content

Commit

Permalink
Fixed syntax error in digitalPinToPCMSK
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenguer committed Jan 7, 2016
1 parent 1059a74 commit 6d9a0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variants/panstamp_avr_2.0/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static const uint8_t A7 = 13;

#define digitalPinToPCICR(p) (((p) >= 0 && (p) <= 22) ? (&PCICR) : ((uint8_t *)0))
#define digitalPinToPCICRbit(p) (((p) <= 22 && (p) >= 18 || (p) == 0 || (p) == 1) ? 2 : (((p) <= 11 && (p) >= 3) ? 1 : 0))
#define digitalPinToPCMSK(p) (((p) <= 22 && (p) >= 18 || (p) == 0 || (p) == 1) ? (&PCMSK2) : (((p) <= 11 && (p) >= 3) ? (&PCMSK1) : (&PCMSK0))))
#define digitalPinToPCMSK(p) (((p) <= 22 && (p) >= 18 || (p) == 0 || (p) == 1) ? (&PCMSK2) : (((p) <= 11 && (p) >= 3) ? (&PCMSK1) : (&PCMSK0)))
#define digitalPinToPCMSKbit(p) digital_pin_to_bit_mask_PGM[p]

#define digitalPinToInterrupt(p) ((p) == 18 ? 1 : NOT_AN_INTERRUPT)
Expand Down

0 comments on commit 6d9a0ac

Please sign in to comment.