Home
last modified time | relevance | path

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

12345

/Zephyr-Core-3.5.0/drivers/bluetooth/hci/
Dcyw43xxx.c43 /* Default BAUDRATE */
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
93 * NOTE from datasheet for update baudrate: in bt_update_controller_baudrate()
110 /* Baudrate is loaded LittleEndian */ in bt_update_controller_baudrate()
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()
[all …]
/Zephyr-Core-3.5.0/drivers/serial/
Duart_lpc11u6x.c79 uint32_t baudrate) in lpc11u6x_uart0_config_baudrate() argument
86 * LPC11U6X_UART0_CLK so that we can have every baudrate that is in lpc11u6x_uart0_config_baudrate()
93 dl = pclk / (16 * baudrate + 16 * baudrate / mul); in lpc11u6x_uart0_config_baudrate()
95 /* Configure clock divisor and fractional baudrate generator */ in lpc11u6x_uart0_config_baudrate()
108 /* Check that the baudrate is a multiple of 9600 */ in lpc11u6x_uart0_configure()
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()
357 /* Configure baudrate, parity and stop bits */ in lpc11u6x_uart0_init()
[all …]
Duart_native_tty_bottom.c25 int baudrate; member
78 * @param baudrate
80 static inline void native_tty_baud_speed_set(struct termios *ter, int baudrate) in native_tty_baud_speed_set() argument
83 if (baudrate_lut[i].baudrate == baudrate) { in native_tty_baud_speed_set()
89 ERROR("Could not set baudrate, as %d is not supported.\n", baudrate); in native_tty_baud_speed_set()
203 native_tty_baud_speed_set(&ter, cfg->baudrate); in native_tty_configure_bottom()
Duart_native_tty.c38 /* Baudrate set from the command line. If UINT32_MAX, it was not set. */
59 bottom_cfg->baudrate = cfg->baudrate; in native_tty_conv_to_bottom_cfg()
178 uart_config.baudrate = data->cmd_baudrate; in native_tty_serial_init()
219 .baudrate = DT_INST_PROP(inst, current_speed), \
246 .name = "baudrate", \
249 .descript = "Set a baudrate for " INST_NAME(inst) " device, overriding the " \
250 "baudrate of " STRINGIFY(DT_INST_PROP(inst, current_speed)) \
Duart_efinix_sapphire.c37 uint32_t baudrate; member
67 .baudrate = DT_INST_PROP(0, current_speed),
75 (uart_efinix_sapphire_cfg_0.baudrate * UART0_SAMPLE_PER_BAUD)) - in uart_efinix_sapphire_init()
Duart_rpi_pico.c133 data->uart_config.baudrate = uart_init(uart_inst, data->uart_config.baudrate); in uart_rpi_init()
135 /* Check if baudrate adjustment returned by 'uart_init' function is a positive value */ 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), \
Duart_sam.c99 static int uart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in uart_sam_baudrate_set() argument
109 __ASSERT(baudrate, in uart_sam_baudrate_set()
111 __ASSERT(SOC_ATMEL_SAM_MCK_FREQ_HZ/16U >= baudrate, in uart_sam_baudrate_set()
114 divisor = SOC_ATMEL_SAM_MCK_FREQ_HZ / 16U / baudrate; in uart_sam_baudrate_set()
121 dev_data->baud_rate = baudrate; in uart_sam_baudrate_set()
192 retval = uart_sam_baudrate_set(dev, cfg->baudrate); in uart_sam_configure()
208 cfg->baudrate = dev_data->baud_rate; in uart_sam_config_get()
411 .baudrate = dev_data->baud_rate, in uart_sam_init()
Dusart_sam.c98 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()
Duart_numicro.c128 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), \
Duart_lpc11u6x.h132 uint32_t baudrate; member
141 uint32_t baudrate; member
171 uint32_t baudrate; member
177 uint32_t baudrate; member
Duart_rpi_pico_pio.c25 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), \
/Zephyr-Core-3.5.0/dts/bindings/serial/
Daltr,uart.yaml14 description: Default baudrate of the uart controller.
16 fixed-baudrate:
/Zephyr-Core-3.5.0/samples/drivers/uart/native_tty/src/
Dmain.c20 .baudrate = 9600,
68 uart_cfg.baudrate = 9600; in main()
69 printk("\nChanging baudrate of both uart devices to %d!\n\n", uart_cfg.baudrate); in main()
/Zephyr-Core-3.5.0/samples/subsys/usb/cdc_acm_composite/src/
Dmain.c93 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()
112 LOG_DBG("Failed to get baudrate, ret code %d", ret); in uart_line_set()
114 LOG_DBG("Baudrate detected: %d", baudrate); in uart_line_set()
/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_rv32m1_lpi2c.c46 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()
74 /* baudrate = KHZ(3400); */ in rv32m1_lpi2c_configure()
78 /* baudrate = MHZ(5); */ in rv32m1_lpi2c_configure()
91 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()
Di2c_sc18im704.c241 /* The device baudrate after reset is 9600 */ in i2c_sc18im_init()
243 .baudrate = 9600, in i2c_sc18im_init()
304 LOG_ERR("Failed to set baudrate (%d)", ret); in i2c_sc18im_init()
311 /* Re-configure the UART controller with the new baudrate */ in i2c_sc18im_init()
312 uart_cfg.baudrate = cfg->bus_speed; in i2c_sc18im_init()
Di2c_gecko.c82 uint32_t baudrate; in i2c_gecko_configure() local
90 baudrate = KHZ(100); in i2c_gecko_configure()
93 baudrate = KHZ(400); in i2c_gecko_configure()
96 baudrate = MHZ(1); in i2c_gecko_configure()
103 i2cInit.freq = baudrate; in i2c_gecko_configure()
Di2c_mcux.c58 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()
Di2c_mcux_flexcomm.c53 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()
Di2c_mcux_lpi2c.c33 #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.5.0/samples/subsys/usb/cdc_acm/src/
Dmain.c156 uint32_t baudrate, dtr = 0U; in main() local
206 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in main()
208 LOG_WRN("Failed to get baudrate, ret code %d", ret); in main()
210 LOG_INF("Baudrate detected: %d", baudrate); in main()
/Zephyr-Core-3.5.0/drivers/w1/
Dw1_zephyr_serial.c13 * The driver uses a uart peripheral with a baudrate of 115.2 kBd to send
136 /* reset uses 115200/9600=12 slower baudrate, in w1_serial_reset_bus()
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.5.0/samples/subsys/usb/cdc_acm_composite/
DREADME.rst54 Baudrate detected: 115200
55 Baudrate detected: 115200
/Zephyr-Core-3.5.0/dts/bindings/wifi/
Despressif,esp-at.yaml26 UART baudrate which will be requested using AT commands and to which

12345