Skip to content

Commit

Permalink
Merge pull request #1 from SaintGimp/ATTiny84_fixes
Browse files Browse the repository at this point in the history
Add ATTiny44/84 support
  • Loading branch information
ladyada committed Jan 3, 2014
2 parents 2d4c81d + 11e64ce commit 8098355
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions USI_TWI_Master.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@
#define PIN_USI_SCL PINB2
#endif

#if defined(__AVR_ATtiny84__) | defined(__AVR_ATtiny44__)
# define DDR_USI DDRA
# define PORT_USI PORTA
# define PIN_USI PINA
# define PORT_USI_SDA PORTA6
# define PORT_USI_SCL PORTA4
# define PIN_USI_SDA PINA6
# define PIN_USI_SCL PINA4
#endif

#if defined(__AVR_AT90Tiny2313__) | defined(__AVR_ATtiny2313__)
#define DDR_USI DDRB
#define PORT_USI PORTB
Expand Down

0 comments on commit 8098355

Please sign in to comment.