Project

General

Profile

Revision 328

increased bitrate to 115200

View differences:

uart.c
213 213
    conf = (conf & (~UART_PARITY)) | parity;
214 214
    return uart_set_lcr(base_addr, conf);
215 215
}
216
int uart_set_bit_rate(int base_addr, double bit_rate){
216
int uart_set_bit_rate(int base_addr, uint32_t bit_rate){
217 217
    int ret = SUCCESS;
218 218
    uint16_t latch = (uint16_t)(UART_BITRATE/bit_rate);
219 219
    uint8_t dll = UART_GET_DLL(latch);

Also available in: Unified diff