diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-14 04:25:05 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-03-14 04:25:05 +0400 |
commit | 7191e4c1be455010285fb4bb39d7d1cad2d55d6a (patch) | |
tree | dc9046d4de3bb3c10362a814c3f0acf1ae818c26 | |
parent | 3dea83c6ab67d41cb7ac95058e5211e35a18c4ef (diff) | |
parent | e9a0f9df660739b6c929572abc1a49207a9eb8f8 (diff) |
Merge pull request #37 from tobiasebsen/attiny45
Fixed port definitions for ATtiny45
-rw-r--r-- | fastpin.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -262,13 +262,13 @@ typedef volatile uint32_t * ptr_reg32_t; #warning "Softwrae pin support forced pin access will be slightly slower. See fastpin.h for info." #define NO_HARDWARE_PIN_SUPPORT -#elif defined(__AVR_ATtiny85__) +#elif defined(__AVR_ATtiny85__) || defined(__AVR_ATtiny45__) _IO(B); _DEFPIN_AVR(0, 0x01, B); _DEFPIN_AVR(1, 0x02, B); _DEFPIN_AVR(2, 0x04, B); _DEFPIN_AVR(3, 0x08, B); _DEFPIN_AVR(4, 0x10, B); _DEFPIN_AVR(5, 0x20, B); -#elif(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) +#elif(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny25__) _IO(A); _IO(B); _DEFPIN_AVR(0, 0x01, A); _DEFPIN_AVR(1, 0x02, A); _DEFPIN_AVR(2, 0x04, A); _DEFPIN_AVR(3, 0x08, A); |