#include #define CPU_FREQ 16000000L void init_serial(int speed){ UBRR0 = CPU_FREQ/(((unsigned long int)speed)<<4)-1; //Set baud rate UCSR0B = (1<