Searched refs:actual_baudrate (Results 1 – 4 of 4) sorted by relevance
54 int actual_baudrate; member60 : actual_baudrate(actual) in calc_result()68 : actual_baudrate(0) in calc_result()112 …BOOST_CHECK_MESSAGE(res->actual_baudrate == calc_baudrate && res->divisor == divisor && res->fract… in test_baudrates()116 BOOST_CHECK_EQUAL(res->actual_baudrate, calc_baudrate); in test_baudrates()
273 uint32_t actual_baudrate = uart_get_baudrate(self); in pyb_uart_init_helper() local277 if (actual_baudrate > baudrate) { in pyb_uart_init_helper()278 baudrate_diff = actual_baudrate - baudrate; in pyb_uart_init_helper()280 baudrate_diff = baudrate - actual_baudrate; in pyb_uart_init_helper()282 if (20 * baudrate_diff > actual_baudrate) { in pyb_uart_init_helper()283 …_ValueError, MP_ERROR_TEXT("set baudrate %d is not within 5%% of desired value"), actual_baudrate); in pyb_uart_init_helper()
1106 int actual_baudrate; in ftdi_set_baudrate() local1116 actual_baudrate = ftdi_convert_baudrate(baudrate, ftdi, &value, &index); in ftdi_set_baudrate()1117 if (actual_baudrate <= 0) in ftdi_set_baudrate()1121 if ((actual_baudrate * 2 < baudrate /* Catch overflows */ ) in ftdi_set_baudrate()1122 || ((actual_baudrate < baudrate) in ftdi_set_baudrate()1123 ? (actual_baudrate * 21 < baudrate * 20) in ftdi_set_baudrate()1124 : (baudrate * 21 < actual_baudrate * 20))) in ftdi_set_baudrate()
1454 int actual_baudrate; in ftdi_set_baudrate() local1464 actual_baudrate = ftdi_convert_baudrate(baudrate, ftdi, &value, &index); in ftdi_set_baudrate()1465 if (actual_baudrate <= 0) in ftdi_set_baudrate()1469 if ((actual_baudrate * 2 < baudrate /* Catch overflows */ ) in ftdi_set_baudrate()1470 || ((actual_baudrate < baudrate) in ftdi_set_baudrate()1471 ? (actual_baudrate * 21 < baudrate * 20) in ftdi_set_baudrate()1472 : (baudrate * 21 < actual_baudrate * 20))) in ftdi_set_baudrate()