#ifndef __MAIN_H #define __MAIN_H #ifdef __ICCAVR__ #include #include #define sei() __enable_interrupt() #define sleep_mode() __sleep() #endif #ifdef __GNUC__ #include #include #include #define ADCSR ADCSRA #endif #include #include "twim.h" #ifndef F_CPU #define F_CPU 8000000UL #endif /* Timers */ // T0 period 4 ms == 0x100 - (8000000 / 256 * 0.004) #define TIM0_PRESCALER 1<