diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-11-08 21:57:48 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-11-08 21:57:48 +0000 |
commit | cf3ce01dad6991d0882a867dea44aa6cabf6db38 (patch) | |
tree | 371bd6250476cf92121755c6573d7e97cfe95e5f /libraries/Wire/utility | |
parent | b2e063e13e76c42489b8e5216cd4e409ffd39ecc (diff) |
Updating libraries for atmega328 (adding it to a couple of #if's, etc.).
Diffstat (limited to 'libraries/Wire/utility')
-rw-r--r-- | libraries/Wire/utility/twi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/Wire/utility/twi.c b/libraries/Wire/utility/twi.c index 3e5489f..82a25c0 100644 --- a/libraries/Wire/utility/twi.c +++ b/libraries/Wire/utility/twi.c @@ -64,7 +64,7 @@ void twi_init(void) // initialize state twi_state = TWI_READY; - #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__) + #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega328P__) // activate internal pull-ups for twi // as per note from atmega8 manual pg167 sbi(PORTC, 4); @@ -329,7 +329,7 @@ void twi_releaseBus(void) twi_state = TWI_READY; } -SIGNAL(SIG_2WIRE_SERIAL) +SIGNAL(TWI_vect) { switch(TW_STATUS){ // All Master |