Project

General

Profile

Revision 321

correcting some problems

View differences:

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

Also available in: Unified diff