#ifndef F_CPU #define F_CPU 8000000UL #endif #include "U0_UART.h" /* Assign I/O stream to UART */ FILE uart_stream = FDEV_SETUP_STREAM(UARTPutch, UARTGetch, _FDEV_SETUP_RW); void UARTInit(void) { //BAUD RATE of 4800 for 8Mhz //UBRRH = 0; //UBRRL = 103; UBRRH = (((F_CPU/BAUD_RATE)/16)-1)>>8; // set baud rate UBRRL = (((F_CPU/BAUD_RATE)/16)-1); UCSRA = 0; //clearing all flags UCSRB = (1<