Home
last modified time | relevance | path

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

1234567

/Zephyr-latest/drivers/bluetooth/hci/
Dh4_ifx_cyw43xxx.c45 /* Default BAUDRATE */
67 static int bt_hci_uart_set_baudrate(const struct device *bt_uart_dev, uint32_t baudrate) in bt_hci_uart_set_baudrate() argument
78 if (uart_cfg.baudrate != baudrate) { in bt_hci_uart_set_baudrate()
80 uart_cfg.baudrate = baudrate; in bt_hci_uart_set_baudrate()
92 static int bt_update_controller_baudrate(const struct device *bt_uart_dev, uint32_t baudrate) in bt_update_controller_baudrate() argument
95 * NOTE from datasheet for update baudrate: in bt_update_controller_baudrate()
112 /* Baudrate is loaded LittleEndian */ in bt_update_controller_baudrate()
115 hci_data[2] = (uint8_t)(baudrate & 0xFFUL); in bt_update_controller_baudrate()
116 hci_data[3] = (uint8_t)((baudrate >> 8) & 0xFFUL); in bt_update_controller_baudrate()
117 hci_data[4] = (uint8_t)((baudrate >> 16) & 0xFFUL); in bt_update_controller_baudrate()
[all …]
/Zephyr-latest/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_nrfx_uarte2.c86 /* Macro for converting numerical baudrate to register value. It is convenient
90 #define NRF_BAUDRATE(baudrate) ((baudrate) == 300 ? 0x00014000 :\ argument
91 (baudrate) == 600 ? 0x00027000 : \
92 (baudrate) == 1200 ? NRF_UARTE_BAUDRATE_1200 : \
93 (baudrate) == 2400 ? NRF_UARTE_BAUDRATE_2400 : \
94 (baudrate) == 4800 ? NRF_UARTE_BAUDRATE_4800 : \
95 (baudrate) == 9600 ? NRF_UARTE_BAUDRATE_9600 : \
96 (baudrate) == 14400 ? NRF_UARTE_BAUDRATE_14400 : \
97 (baudrate) == 19200 ? NRF_UARTE_BAUDRATE_19200 : \
98 (baudrate) == 28800 ? NRF_UARTE_BAUDRATE_28800 : \
[all …]
Duart_native_tty_bottom.c26 int baudrate; member
79 * @param baudrate
81 static inline void native_tty_baud_speed_set(struct termios *ter, int baudrate) in native_tty_baud_speed_set() argument
84 if (baudrate_lut[i].baudrate == baudrate) { in native_tty_baud_speed_set()
90 ERROR("Could not set baudrate, as %d is not supported.\n", baudrate); in native_tty_baud_speed_set()
211 native_tty_baud_speed_set(&ter, cfg->baudrate); in native_tty_configure_bottom()
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_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()
Duart_max32.c37 struct uart_config conf; /* baudrate, stopbits, ... */
183 * Set baudrate in api_configure()
185 if (data->conf.baudrate != uart_cfg->baudrate) { in api_configure()
186 err = Wrap_MXC_UART_SetFrequency(regs, uart_cfg->baudrate, cfg->perclk.clk_src); in api_configure()
191 data->conf.baudrate = uart_cfg->baudrate; in api_configure()
441 .uart_conf.baudrate = DT_INST_PROP_OR(_num, current_speed, 115200), \
Duart_native_tty.c38 /* Baudrate set from the command line. If UINT32_MAX, it was not set. */
77 bottom_cfg->baudrate = cfg->baudrate; in native_tty_conv_to_bottom_cfg()
340 uart_config.baudrate = data->cmd_baudrate; in native_tty_serial_init()
399 .baudrate = DT_INST_PROP(inst, current_speed), \
426 .name = "baudrate", \
429 .descript = "Set a baudrate for " INST_NAME(inst) " device, overriding the " \
430 "baudrate of " STRINGIFY(DT_INST_PROP(inst, current_speed)) \
Duart_async_to_irq.c45 /* Function calculates RX timeout based on baudrate. */
50 uint32_t baudrate; in get_rx_timeout() local
54 baudrate = cfg.baudrate; in get_rx_timeout()
56 baudrate = get_config(dev)->baudrate; in get_rx_timeout()
59 uint32_t us = (CONFIG_UART_ASYNC_TO_INT_DRIVEN_RX_TIMEOUT * 1000000) / baudrate; in get_rx_timeout()
Duart_nrfx_uarte.c126 /* uart120 instance does not retain BAUDRATE register when ENABLE=0. When this instance
127 * is used then baudrate must be set after enabling the peripheral and not before.
255 /* Macro for converting numerical baudrate to register value. It is convenient
259 #define NRF_BAUDRATE(baudrate) ((baudrate) == 300 ? 0x00014000 :\ argument
260 (baudrate) == 600 ? 0x00027000 : \
261 (baudrate) == 1200 ? NRF_UARTE_BAUDRATE_1200 : \
262 (baudrate) == 2400 ? NRF_UARTE_BAUDRATE_2400 : \
263 (baudrate) == 4800 ? NRF_UARTE_BAUDRATE_4800 : \
264 (baudrate) == 9600 ? NRF_UARTE_BAUDRATE_9600 : \
265 (baudrate) == 14400 ? NRF_UARTE_BAUDRATE_14400 : \
[all …]
/Zephyr-latest/dts/bindings/serial/
Daltr,uart.yaml14 description: Default baudrate of the uart controller.
16 fixed-baudrate:
Dintel,lw_uart.yaml14 description: Default baudrate of the uart controller.
16 fixed-baudrate:
/Zephyr-latest/dts/bindings/bluetooth/
Dnxp,bt-hci-uart.yaml23 HCI UART baudrate for feature operation. If not defined
33 HCI UART primary baudrate for FW download operation.
44 HCI UART secondary baudrate for FW download operation.
/Zephyr-latest/tests/drivers/uart/uart_elementary/
DKconfig12 int "UART baudrate for DUT_AUX to test mismatch case"
16 UART baudrate for DUT_AUX that is intentionally different from DUT
/Zephyr-latest/dts/bindings/gnss/
Du-blox,m8.yaml12 uart-baudrate:
15 Baudrate for communication on the UART port.
/Zephyr-latest/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-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c140 struct uart_config test_uart_config = { .baudrate = UART_BAUDRATE, in ZTEST()
152 zassert_equal(test_uart_config.baudrate, test_expected_uart_config.baudrate, in ZTEST()
153 "Set and actual UART config baudrate mismatch: %d != %d", in ZTEST()
154 test_uart_config.baudrate, test_expected_uart_config.baudrate); in ZTEST()
181 struct uart_config test_uart_config = { .baudrate = UART_BAUDRATE, in ZTEST()
201 struct uart_config test_uart_config = { .baudrate = UART_BAUDRATE, in ZTEST()
238 struct uart_config test_uart_config = { .baudrate = UART_BAUDRATE, in ZTEST()
245 struct uart_config test_uart_config_aux = { .baudrate = CONFIG_UART_BAUDRATE_MISMATCH, in ZTEST()
/Zephyr-latest/drivers/i2c/
Di2c_rv32m1_lpi2c.c47 uint32_t baudrate; in rv32m1_lpi2c_configure() local
65 baudrate = KHZ(100); in rv32m1_lpi2c_configure()
68 baudrate = KHZ(400); in rv32m1_lpi2c_configure()
71 baudrate = MHZ(1); in rv32m1_lpi2c_configure()
75 /* baudrate = KHZ(3400); */ in rv32m1_lpi2c_configure()
79 /* baudrate = MHZ(5); */ in rv32m1_lpi2c_configure()
92 LPI2C_MasterSetBaudRate(config->base, clk_freq, baudrate); in rv32m1_lpi2c_configure()
Di2c_mcux_lpi2c_rtio.c34 #define SCAN_DELAY_US(baudrate) (12 * USEC_PER_SEC / baudrate) argument
85 uint32_t baudrate; in mcux_lpi2c_do_configure() local
97 baudrate = KHZ(100); in mcux_lpi2c_do_configure()
100 baudrate = KHZ(400); in mcux_lpi2c_do_configure()
103 baudrate = MHZ(1); in mcux_lpi2c_do_configure()
114 LPI2C_MasterSetBaudRate(base, clock_freq, baudrate); in mcux_lpi2c_do_configure()
/Zephyr-latest/samples/subsys/usb/cdc_acm/src/
Dmain.c40 uint32_t baudrate; in print_baudrate() local
43 ret = uart_line_ctrl_get(dev, UART_LINE_CTRL_BAUD_RATE, &baudrate); in print_baudrate()
45 LOG_WRN("Failed to get baudrate, ret code %d", ret); in print_baudrate()
47 LOG_INF("Baudrate %u", baudrate); in print_baudrate()
/Zephyr-latest/drivers/gnss/
Dgnss_u_blox_m8.c302 payload.baudrate = target_baudrate; in ubx_m8_ubx_cfg_prt_set()
311 /* Returns failure if "target_baudrate" is different than device's currently set baudrate, in ubx_m8_ubx_cfg_prt_set()
312 * because the device will change its baudrate and respond with UBX-ACK with new baudrate, in ubx_m8_ubx_cfg_prt_set()
313 * which we will miss. Hence, we need to change uart's baudrate after sending the frame in ubx_m8_ubx_cfg_prt_set()
360 static int ubx_m8_set_uart_baudrate(const struct device *dev, uint32_t baudrate) in ubx_m8_set_uart_baudrate() argument
379 uart_cfg.baudrate = baudrate; in ubx_m8_set_uart_baudrate()
391 static bool ubx_m8_validate_baudrate(const struct device *dev, uint32_t baudrate) in ubx_m8_validate_baudrate() argument
394 if (baudrate == ubx_baudrate[i]) { in ubx_m8_validate_baudrate()
402 /* This function will return failure if "target_baudrate" != device's current baudrate.
418 * know the currently set baudrate of the device. We will match the baudrate in one of the in ubx_m8_configure_gnss_device_baudrate_prerequisite()
[all …]
/Zephyr-latest/drivers/modem/
DKconfig.cellular61 int "New baudrate to configure modem to, if supported"
67 int "Time modem takes to change baudrate, in milliseconds"
/Zephyr-latest/scripts/logging/dictionary/
Dlog_parser_uart.py32 argparser.add_argument("baudrate", help="Serial Port baud rate")
54 with serial.Serial(args.serialPort, args.baudrate) as ser:
/Zephyr-latest/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-latest/samples/drivers/gnss/boards/
Dvmu_rt1170.overlay20 uart-baudrate = <115200>;

1234567