#include // for the input/output register #include // For the serial port #define CPU_FREQ 16000000L // Assume a CPU frequency of 16Mhz void init_serial(int speed) //initialisation de la liaison série { /* Set baud rate */ UBRR0 = CPU_FREQ/(((unsigned long int)speed)<<4)-1; /* Enable transmitter & receiver */ UCSR0B = (1<