From cf3ce01dad6991d0882a867dea44aa6cabf6db38 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 8 Nov 2008 21:57:48 +0000 Subject: Updating libraries for atmega328 (adding it to a couple of #if's, etc.). --- libraries/Wire/utility/twi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/Wire/utility') 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 -- cgit v1.2.3-18-g5258