#include // for the input/output registers #include // for _delay_ms // For the serial port #define CPU_FREQ 16000000L // Assume a CPU frequency of 16Mhz //compile -> makefile void init_serial(int speed){ /* Set baud rate */ UBRR0 = CPU_FREQ/(((unsigned long int)speed)<<4)-1; /* Enable transmitter & receiver */ UCSR0B = (1<