mirror of
https://github.com/damellis/attiny
synced 2025-08-30 05:17:39 +00:00
Adding pin change interrupt macros for ATtiny44/84.
This commit is contained in:
parent
070d381a6b
commit
6fc9896ff8
@ -42,6 +42,11 @@
|
|||||||
// PWM (D 4) PA6 7| |8 PA5 (D 5) PWM
|
// PWM (D 4) PA6 7| |8 PA5 (D 5) PWM
|
||||||
// +----+
|
// +----+
|
||||||
|
|
||||||
|
#define digitalPinToPCICR(p) ( ((p) >= 0 && (p) <= 10) ? (&GIMSK) : ((uint8_t *)0) )
|
||||||
|
#define digitalPinToPCICRbit(p) ( ((p) <= 2) ? PCIE1 : PCIE0 )
|
||||||
|
#define digitalPinToPCMSK(p) ( ((p) <= 2) ? (&PCMSK1) : (((p) <= 10) ? (&PCMSK0) : ((uint8_t *)0)) )
|
||||||
|
#define digitalPinToPCMSKbit(p) ( ((p) <= 2) ? (p) : (10 - (p)) )
|
||||||
|
|
||||||
#ifdef ARDUINO_MAIN
|
#ifdef ARDUINO_MAIN
|
||||||
|
|
||||||
// these arrays map port names (e.g. port B) to the
|
// these arrays map port names (e.g. port B) to the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user