Home
last modified time | relevance | path

Searched full:baudrate (Results 1 – 25 of 68) sorted by relevance

123

/Zephyr-Core-2.7.6/drivers/serial/
Duart_lpc11u6x.c82 uint32_t baudrate) in lpc11u6x_uart0_config_baudrate() argument
89 * LPC11U6X_UART0_CLK so that we can have every baudrate that is in lpc11u6x_uart0_config_baudrate()
96 dl = pclk / (16 * baudrate + 16 * baudrate / mul); in lpc11u6x_uart0_config_baudrate()
98 /* Configure clock divisor and fractional baudrate generator */ in lpc11u6x_uart0_config_baudrate()
112 /* Check that the baudrate is a multiple of 9600 */ in lpc11u6x_uart0_configure()
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()
374 /* Configure baudrate, parity and stop bits */ in lpc11u6x_uart0_init()
[all …]
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_lpc11u6x.h132 uint32_t baudrate; member
144 uint32_t baudrate; member
176 uint32_t baudrate; member
185 uint32_t baudrate; member
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_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_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_nrfx_uart.c26 #define BAUDRATE PROP(current_speed) macro
131 * @param baudrate Baud rate
136 static int baudrate_set(const struct device *dev, uint32_t baudrate) in baudrate_set() argument
138 nrf_uart_baudrate_t nrf_baudrate; /* calculated baudrate divisor */ in baudrate_set()
140 switch (baudrate) { in baudrate_set()
381 if (baudrate_set(dev, cfg->baudrate) != 0) { in uart_nrfx_configure()
1173 .baudrate = BAUDRATE,
Duart_xmc4xxx.c69 .config.baudrate = DT_INST_PROP(index, 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()
/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()
125 LOG_WRN("Failed to get baudrate, ret code %d", ret); in main()
127 LOG_INF("Baudrate detected: %d", baudrate); in main()
/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_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()
70 /* baudrate = KHZ(3400); */ in rv32m1_lpi2c_configure()
74 /* baudrate = MHZ(5); */ in rv32m1_lpi2c_configure()
87 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_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_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_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_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_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()
107 LOG_DBG("Failed to get baudrate, ret code %d", ret); in uart_line_set()
109 LOG_DBG("Baudrate detected: %d", baudrate); in uart_line_set()
/Zephyr-Core-2.7.6/samples/subsys/usb/cdc_acm_composite/
DREADME.rst53 Baudrate detected: 115200
54 Baudrate detected: 115200
/Zephyr-Core-2.7.6/samples/bluetooth/hci_uart/
DREADME.rst22 * Baudrate: 1Mbit/s
75 If using the BBC micro:bit you will need to modify the baudrate argument
108 If using the BBC micro:bit you will need to modify the baudrate argument
/Zephyr-Core-2.7.6/dts/bindings/wifi/
Despressif,esp-at.yaml26 UART baudrate which will be requested using AT commands and to which
/Zephyr-Core-2.7.6/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c17 .baudrate = 115200, in z_gdb_backend_init()
/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()
566 LOG_WRN("Failed to get baudrate, ret code %d", ret); in main()
568 LOG_DBG("Baudrate detected: %d", baudrate); in main()
/Zephyr-Core-2.7.6/scripts/tracing/
Dtrace_capture_uart.py22 help="serial baudrate")
/Zephyr-Core-2.7.6/samples/sensor/tmp116/
DREADME.rst51 * Baudrate: 115200

123