void serial_init(void) { UART_CmdReset(); // Initialize receiver/cmd // buffer UART_IntCntl(UART_ENABLE_RX_INT); // Enable RX interrupts Counter8_WritePeriod(155); // Set up baud rate generator Counter8_WriteCompareValue(77); Counter8_Start(); // Turn on baud rate generator UART_Start(UART_PARITY_NONE); // Enable UART serial_cprint("\r\n:: Welcome to Kelvin [v0.1.1] ::"); }
void init_uart(void){ ///UART//// UART_CmdReset(); UART_IntCntl(UART_ENABLE_RX_INT); UART_Start(UART_PARITY_NONE); UART_PutChar(12); #ifdef UART_VERBOSE UART_CPutString("\r\n\r\n\r\n\r\n\r\n\r\n waking up......................................."); #endif }