// Martin Thomas 4/2008 #include #include #include #include #define LED_PORT PORTB #define LED_DDR DDRB #define LED_BIT PB2 #define BT_PORT PORTC #define BT_DDR DDRC #define BT_PIN PINC #define BT_BIT PC7 static inline void my_wdt_off(void) { cli(); wdt_reset(); /* Clear WDRF in MCUSR */ MCUSR &= ~(1<