Home
last modified time | relevance | path

Searched refs:baudrate (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-Core-2.7.6/drivers/serial/
Duart_lpc11u6x.c82 uint32_t baudrate) in lpc11u6x_uart0_config_baudrate() argument
96 dl = pclk / (16 * baudrate + 16 * baudrate / mul); in lpc11u6x_uart0_config_baudrate()
113 if (cfg->baudrate % 9600) { in lpc11u6x_uart0_configure()
178 lpc11u6x_uart0_config_baudrate(clk_dev, dev_cfg, cfg->baudrate); in lpc11u6x_uart0_configure()
181 data->baudrate = cfg->baudrate; in lpc11u6x_uart0_configure()
195 cfg->baudrate = data->baudrate; in lpc11u6x_uart0_config_get()
375 lpc11u6x_uart0_config_baudrate(clk_drv, cfg, cfg->baudrate); in lpc11u6x_uart0_init()
379 data->baudrate = cfg->baudrate; in lpc11u6x_uart0_init()
411 .baudrate = DT_PROP(DT_NODELABEL(uart0), current_speed),
510 uint32_t baudrate) in lpc11u6x_uartx_config_baud() argument
[all …]
Duart_lpc11u6x.h132 uint32_t baudrate; member
144 uint32_t baudrate; member
176 uint32_t baudrate; member
185 uint32_t baudrate; member
Duart_esp32.c174 cfg->baudrate = data->uart_config.baudrate; in uart_esp32_config_get()
196 static int uart_esp32_set_baudrate(const struct device *dev, int baudrate) in uart_esp32_set_baudrate() argument
206 uint32_t clk_div = (((sys_clk_freq) << 4) / baudrate); in uart_esp32_set_baudrate()
311 if (uart_esp32_set_baudrate(dev, cfg->baudrate)) { in uart_esp32_configure()
312 DEV_DATA(dev)->uart_config.baudrate = cfg->baudrate; in uart_esp32_configure()
506 .baudrate = DT_PROP(DT_NODELABEL(uart##idx), current_speed),\
Duart_sam.c52 static int baudrate_set(Uart *const uart, uint32_t baudrate,
146 static int baudrate_set(Uart *const uart, uint32_t baudrate, in baudrate_set() argument
151 __ASSERT(baudrate, in baudrate_set()
153 __ASSERT(mck_freq_hz/16U >= baudrate, in baudrate_set()
156 divisor = mck_freq_hz / 16U / baudrate; in baudrate_set()
Dusart_sam.c52 static int baudrate_set(Usart *const usart, uint32_t baudrate,
147 static int baudrate_set(Usart *const usart, uint32_t baudrate, in baudrate_set() argument
152 __ASSERT(baudrate, in baudrate_set()
154 __ASSERT(mck_freq_hz/16U >= baudrate, in baudrate_set()
157 divisor = mck_freq_hz / 16U / baudrate; in baudrate_set()
Duart_numicro.c132 UART_SetLineConfig(UART_STRUCT(dev), cfg->baudrate, databits, in uart_numicro_configure()
174 UART_Open(UART_STRUCT(dev), ddata->ucfg.baudrate); in uart_numicro_init()
201 .baudrate = DT_INST_PROP(index, current_speed), \
Duart_sam0.c33 uint32_t baudrate; member
109 static int uart_sam0_set_baudrate(SercomUsart *const usart, uint32_t baudrate, in uart_sam0_set_baudrate() argument
115 tmp = (uint64_t)baudrate << 20; in uart_sam0_set_baudrate()
480 retval = uart_sam0_set_baudrate(usart, new_cfg->baudrate, in uart_sam0_configure()
486 dev_data->config_cache.baudrate = new_cfg->baudrate; in uart_sam0_configure()
559 retval = uart_sam0_set_baudrate(usart, cfg->baudrate, in uart_sam0_init()
564 dev_data->config_cache.data_bits = cfg->baudrate; in uart_sam0_init()
1226 .baudrate = DT_INST_PROP(n, current_speed), \
1241 .baudrate = DT_INST_PROP(n, current_speed), \
Duart_b91.c141 static void uart_b91_cal_div_and_bwpc(uint32_t baudrate, uint32_t pclk, in uart_b91_cal_div_and_bwpc() argument
150 primeInt = pclk / baudrate; in uart_b91_cal_div_and_bwpc()
151 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, &divider, &bwpc); in uart_b91_configure()
Duart_xmc4xxx.c69 .config.baudrate = DT_INST_PROP(index, current_speed) \
Duart_mchp_xec.c229 dev_data->uart_config.baudrate = baud_rate; in set_baud_rate()
263 set_baud_rate(dev, cfg->baudrate); in uart_xec_configure()
346 cfg->baudrate = data->uart_config.baudrate; in uart_xec_config_get()
887 .uart_config.baudrate = DT_INST_PROP_OR(n, current_speed, 0), \
Duart_msp432p4xx.c51 static int baudrate_set(eUSCI_UART_Config *config, uint32_t baudrate) in baudrate_set() argument
56 switch (baudrate) { in baudrate_set()
Duart_ns16550.c333 dev_data->uart_config.baudrate = baud_rate; in set_baud_rate()
393 set_baud_rate(dev, cfg->baudrate); in uart_ns16550_configure()
484 cfg->baudrate = data->uart_config.baudrate; in uart_ns16550_config_get()
1084 .uart_config.baudrate = DT_INST_PROP_OR(n, current_speed, 0), \
Duart_apbuart.c271 set_baud(regs, cfg->baudrate); in apbuart_configure()
299 cfg->baudrate = get_baud(regs); in apbuart_config_get()
Duart_nrfx_uart.c136 static int baudrate_set(const struct device *dev, uint32_t baudrate) in baudrate_set() argument
140 switch (baudrate) { in baudrate_set()
381 if (baudrate_set(dev, cfg->baudrate) != 0) { in uart_nrfx_configure()
1173 .baudrate = BAUDRATE,
/Zephyr-Core-2.7.6/drivers/i2c/
Di2c_mcux_lpi2c.c22 #define SCAN_DELAY_US(baudrate) (12 * USEC_PER_SEC / baudrate) argument
47 uint32_t baudrate; in mcux_lpi2c_configure() local
60 baudrate = KHZ(100); in mcux_lpi2c_configure()
63 baudrate = KHZ(400); in mcux_lpi2c_configure()
66 baudrate = MHZ(1); in mcux_lpi2c_configure()
82 LPI2C_MasterSetBaudRate(base, clock_freq, baudrate); in mcux_lpi2c_configure()
Di2c_mcux_flexcomm.c40 uint32_t baudrate; in mcux_flexcomm_configure() local
52 baudrate = KHZ(100); in mcux_flexcomm_configure()
55 baudrate = KHZ(400); in mcux_flexcomm_configure()
58 baudrate = MHZ(1); in mcux_flexcomm_configure()
70 I2C_MasterSetBaudRate(base, baudrate, clock_freq); in mcux_flexcomm_configure()
Di2c_mcux.c49 uint32_t baudrate; in i2c_mcux_configure() local
61 baudrate = KHZ(100); in i2c_mcux_configure()
64 baudrate = KHZ(400); in i2c_mcux_configure()
67 baudrate = MHZ(1); in i2c_mcux_configure()
75 I2C_MasterSetBaudRate(base, baudrate, clock_freq); in i2c_mcux_configure()
Di2c_gecko.c83 uint32_t baudrate; in i2c_gecko_configure() local
91 baudrate = KHZ(100); in i2c_gecko_configure()
94 baudrate = KHZ(400); in i2c_gecko_configure()
97 baudrate = MHZ(1); in i2c_gecko_configure()
104 i2cInit.freq = baudrate; in i2c_gecko_configure()
Di2c_rv32m1_lpi2c.c42 uint32_t baudrate; in rv32m1_lpi2c_configure() local
60 baudrate = KHZ(100); in rv32m1_lpi2c_configure()
63 baudrate = KHZ(400); in rv32m1_lpi2c_configure()
66 baudrate = MHZ(1); in rv32m1_lpi2c_configure()
87 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_configure()
Di2c_imx.c130 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()
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm/src/
Dmain.c78 uint32_t baudrate, dtr = 0U; in main() local
123 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in main()
127 LOG_INF("Baudrate detected: %d", baudrate); in main()
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm_composite/src/
Dmain.c88 uint32_t baudrate; in uart_line_set() local
105 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in uart_line_set()
109 LOG_DBG("Baudrate detected: %d", baudrate); in uart_line_set()
/Zephyr-Core-2.7.6/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c17 .baudrate = 115200, in z_gdb_backend_init()
/Zephyr-Core-2.7.6/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config.c30 .baudrate = 115200,
/Zephyr-Core-2.7.6/samples/net/wpan_serial/src/
Dmain.c531 uint32_t baudrate, dtr = 0U; in main() local
564 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in main()
568 LOG_DBG("Baudrate detected: %d", baudrate); in main()

123