/Zephyr-Core-3.4.0/drivers/bluetooth/hci/ |
D | cyw43xxx.c | 65 static int bt_hci_uart_set_baudrate(const struct device *bt_uart_dev, uint32_t baudrate) in bt_hci_uart_set_baudrate() argument 76 if (uart_cfg.baudrate != baudrate) { in bt_hci_uart_set_baudrate() 78 uart_cfg.baudrate = baudrate; in bt_hci_uart_set_baudrate() 90 static int bt_update_controller_baudrate(const struct device *bt_uart_dev, uint32_t baudrate) in bt_update_controller_baudrate() argument 113 hci_data[2] = (uint8_t)(baudrate & 0xFFUL); in bt_update_controller_baudrate() 114 hci_data[3] = (uint8_t)((baudrate >> 8) & 0xFFUL); in bt_update_controller_baudrate() 115 hci_data[4] = (uint8_t)((baudrate >> 16) & 0xFFUL); in bt_update_controller_baudrate() 116 hci_data[5] = (uint8_t)((baudrate >> 24) & 0xFFUL); in bt_update_controller_baudrate() 138 err = bt_hci_uart_set_baudrate(bt_uart_dev, baudrate); in bt_update_controller_baudrate()
|
/Zephyr-Core-3.4.0/drivers/serial/ |
D | uart_lpc11u6x.c | 79 uint32_t baudrate) in lpc11u6x_uart0_config_baudrate() argument 93 dl = pclk / (16 * baudrate + 16 * baudrate / mul); in lpc11u6x_uart0_config_baudrate() 109 if (cfg->baudrate % 9600) { in lpc11u6x_uart0_configure() 170 lpc11u6x_uart0_config_baudrate(dev_cfg->clock_dev, dev_cfg, cfg->baudrate); in lpc11u6x_uart0_configure() 173 data->baudrate = cfg->baudrate; in lpc11u6x_uart0_configure() 187 cfg->baudrate = data->baudrate; in lpc11u6x_uart0_config_get() 358 lpc11u6x_uart0_config_baudrate(cfg->clock_dev, cfg, cfg->baudrate); in lpc11u6x_uart0_init() 362 data->baudrate = cfg->baudrate; in lpc11u6x_uart0_init() 389 .baudrate = DT_PROP(DT_NODELABEL(uart0), current_speed), 487 uint32_t baudrate) in lpc11u6x_uartx_config_baud() argument [all …]
|
D | uart_lpc11u6x.h | 132 uint32_t baudrate; member 141 uint32_t baudrate; member 171 uint32_t baudrate; member 177 uint32_t baudrate; member
|
D | uart_sam.c | 97 static int uart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in uart_sam_baudrate_set() argument 107 __ASSERT(baudrate, in uart_sam_baudrate_set() 109 __ASSERT(SOC_ATMEL_SAM_MCK_FREQ_HZ/16U >= baudrate, in uart_sam_baudrate_set() 112 divisor = SOC_ATMEL_SAM_MCK_FREQ_HZ / 16U / baudrate; in uart_sam_baudrate_set() 119 dev_data->baud_rate = baudrate; in uart_sam_baudrate_set() 190 retval = uart_sam_baudrate_set(dev, cfg->baudrate); in uart_sam_configure() 206 cfg->baudrate = dev_data->baud_rate; in uart_sam_config_get() 409 .baudrate = dev_data->baud_rate, in uart_sam_init()
|
D | uart_rpi_pico.c | 133 data->uart_config.baudrate = uart_init(uart_inst, data->uart_config.baudrate); in uart_rpi_init() 136 if (data->uart_config.baudrate == 0) { in uart_rpi_init() 175 uint baudrate = 0; in uart_rpi_configure() local 177 baudrate = uart_set_baudrate(uart_inst, cfg->baudrate); in uart_rpi_configure() 178 if (baudrate == 0) { in uart_rpi_configure() 413 .uart_config.baudrate = DT_INST_PROP(idx, current_speed), \
|
D | usart_sam.c | 98 static int usart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in usart_sam_baudrate_set() argument 108 __ASSERT(baudrate, in usart_sam_baudrate_set() 110 __ASSERT(SOC_ATMEL_SAM_MCK_FREQ_HZ/16U >= baudrate, in usart_sam_baudrate_set() 113 divisor = SOC_ATMEL_SAM_MCK_FREQ_HZ / 16U / baudrate; in usart_sam_baudrate_set() 120 dev_data->baud_rate = baudrate; in usart_sam_baudrate_set() 285 retval = usart_sam_baudrate_set(dev, cfg->baudrate); in usart_sam_configure() 301 cfg->baudrate = dev_data->baud_rate; in usart_sam_config_get() 503 .baudrate = dev_data->baud_rate, in usart_sam_init()
|
D | uart_numicro.c | 128 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, in uart_numicro_configure() 171 UART_Open(config->uart, ddata->ucfg.baudrate); in uart_numicro_init() 198 .baudrate = DT_INST_PROP(index, current_speed), \
|
D | uart_rpi_pico_pio.c | 25 uint32_t baudrate; member 154 sm_clock_div = (float)clock_get_hz(clk_sys) / (CYCLES_PER_BIT * config->baudrate); in pio_uart_init() 191 .baudrate = DT_INST_PROP(idx, current_speed), \
|
D | uart_sam0.c | 35 uint32_t baudrate; member 107 static int uart_sam0_set_baudrate(SercomUsart *const usart, uint32_t baudrate, in uart_sam0_set_baudrate() argument 113 tmp = (uint64_t)baudrate << 20; in uart_sam0_set_baudrate() 478 retval = uart_sam0_set_baudrate(usart, new_cfg->baudrate, in uart_sam0_configure() 484 dev_data->config_cache.baudrate = new_cfg->baudrate; in uart_sam0_configure() 561 retval = uart_sam0_set_baudrate(usart, cfg->baudrate, in uart_sam0_init() 566 dev_data->config_cache.baudrate = cfg->baudrate; in uart_sam0_init() 1268 .baudrate = DT_INST_PROP(n, current_speed), \ 1282 .baudrate = DT_INST_PROP(n, current_speed), \
|
D | uart_neorv32.c | 197 if (cfg->baudrate == 0) { in neorv32_uart_configure() 206 baudxx = clk / (2 * cfg->baudrate); in neorv32_uart_configure() 218 LOG_ERR("unsupported baud rate %d", cfg->baudrate); in neorv32_uart_configure() 517 .baudrate = DT_PROP(node_id, current_speed), \
|
D | uart_smartbond.c | 48 uint32_t baudrate; member 154 if (uart_smartbond_baudrate_table[i].baudrate == cfg->baudrate) { in uart_smartbond_configure() 507 .baudrate = DT_INST_PROP(id, current_speed), \
|
D | uart_b91.c | 140 static void uart_b91_cal_div_and_bwpc(uint32_t baudrate, uint32_t pclk, in uart_b91_cal_div_and_bwpc() argument 149 primeInt = pclk / baudrate; in uart_b91_cal_div_and_bwpc() 150 primeDec = 10 * pclk / baudrate - 10 * primeInt; in uart_b91_cal_div_and_bwpc() 283 uart_b91_cal_div_and_bwpc(cfg->baudrate, sys_clk.pclk * 1000 * 1000, ÷r, &bwpc); in uart_b91_configure()
|
/Zephyr-Core-3.4.0/drivers/i2c/ |
D | i2c_gecko.c | 80 uint32_t baudrate; in i2c_gecko_configure() local 88 baudrate = KHZ(100); in i2c_gecko_configure() 91 baudrate = KHZ(400); in i2c_gecko_configure() 94 baudrate = MHZ(1); in i2c_gecko_configure() 101 i2cInit.freq = baudrate; in i2c_gecko_configure()
|
D | i2c_rv32m1_lpi2c.c | 46 uint32_t baudrate; in rv32m1_lpi2c_configure() local 64 baudrate = KHZ(100); in rv32m1_lpi2c_configure() 67 baudrate = KHZ(400); in rv32m1_lpi2c_configure() 70 baudrate = MHZ(1); in rv32m1_lpi2c_configure() 91 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_configure()
|
D | i2c_mcux.c | 58 uint32_t baudrate; in i2c_mcux_configure() local 70 baudrate = KHZ(100); in i2c_mcux_configure() 73 baudrate = KHZ(400); in i2c_mcux_configure() 76 baudrate = MHZ(1); in i2c_mcux_configure() 84 I2C_MasterSetBaudRate(base, baudrate, clock_freq); in i2c_mcux_configure()
|
D | i2c_mcux_flexcomm.c | 53 uint32_t baudrate; in mcux_flexcomm_configure() local 65 baudrate = KHZ(100); in mcux_flexcomm_configure() 68 baudrate = KHZ(400); in mcux_flexcomm_configure() 71 baudrate = MHZ(1); in mcux_flexcomm_configure() 84 I2C_MasterSetBaudRate(base, baudrate, clock_freq); in mcux_flexcomm_configure()
|
D | i2c_imx.c | 130 uint32_t baudrate; in i2c_imx_configure() local 152 baudrate = KHZ(100); in i2c_imx_configure() 155 baudrate = KHZ(400); in i2c_imx_configure() 158 baudrate = MHZ(1); in i2c_imx_configure() 166 .baudRate = baudrate, in i2c_imx_configure()
|
D | i2c_mcux_lpi2c.c | 33 #define SCAN_DELAY_US(baudrate) (12 * USEC_PER_SEC / baudrate) argument 71 uint32_t baudrate; in mcux_lpi2c_configure() local 84 baudrate = KHZ(100); in mcux_lpi2c_configure() 87 baudrate = KHZ(400); in mcux_lpi2c_configure() 90 baudrate = MHZ(1); in mcux_lpi2c_configure() 106 LPI2C_MasterSetBaudRate(base, clock_freq, baudrate); in mcux_lpi2c_configure()
|
/Zephyr-Core-3.4.0/samples/subsys/usb/cdc_acm/src/ |
D | main.c | 156 uint32_t baudrate, dtr = 0U; in main() local 206 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in main() 210 LOG_INF("Baudrate detected: %d", baudrate); in main()
|
/Zephyr-Core-3.4.0/samples/subsys/usb/cdc_acm_composite/src/ |
D | main.c | 93 uint32_t baudrate; in uart_line_set() local 110 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in uart_line_set() 114 LOG_DBG("Baudrate detected: %d", baudrate); in uart_line_set()
|
/Zephyr-Core-3.4.0/drivers/w1/ |
D | w1_zephyr_serial.c | 141 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_reset_bus() 153 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_reset_bus() 227 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_configure() 250 data->uart_cfg.baudrate = W1_SERIAL_STD_DATA_BAUD; in w1_serial_init()
|
/Zephyr-Core-3.4.0/subsys/debug/gdbstub/ |
D | gdbstub_backend_serial.c | 17 .baudrate = 115200, in z_gdb_backend_init()
|
/Zephyr-Core-3.4.0/tests/drivers/uart/uart_basic_api/src/ |
D | test_uart_config.c | 30 .baudrate = 115200,
|
/Zephyr-Core-3.4.0/drivers/ethernet/ |
D | eth_nxp_s32_netc_psi.c | 37 EthTrcv_BaudRateType baudrate; in nxp_s32_eth_configure_port() local 43 baudrate = PHY_TO_NETC_SPEED(speed); in nxp_s32_eth_configure_port() 44 status = Netc_EthSwt_Ip_SetPortSpeed(NETC_SWITCH_IDX, port_idx, baudrate); in nxp_s32_eth_configure_port()
|
/Zephyr-Core-3.4.0/samples/net/wpan_serial/src/ |
D | main.c | 531 uint32_t baudrate, dtr = 0U; in main() local 561 ret = uart_line_ctrl_get(uart_dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in main() 565 LOG_DBG("Baudrate detected: %d", baudrate); in main()
|