/Zephyr-Core-3.7.0/drivers/w1/ |
D | w1_zephyr_serial.c | 61 struct uart_config uart_cfg; member 141 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_reset_bus() 143 if (uart_configure(cfg->uart_dev, &data->uart_cfg) != 0) { in w1_serial_reset_bus() 153 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_reset_bus() 155 if (uart_configure(cfg->uart_dev, &data->uart_cfg) != 0) { in w1_serial_reset_bus() 227 data->uart_cfg.baudrate = data->overdrive_active ? in w1_serial_configure() 229 if (uart_configure(cfg->uart_dev, &data->uart_cfg) != 0) { in w1_serial_configure() 250 data->uart_cfg.baudrate = W1_SERIAL_STD_DATA_BAUD; in w1_serial_init() 251 data->uart_cfg.parity = UART_CFG_PARITY_NONE; in w1_serial_init() 252 data->uart_cfg.data_bits = UART_CFG_DATA_BITS_8; in w1_serial_init() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_basic_api/src/ |
D | test_uart_config.c | 28 const struct uart_config uart_cfg = { variable 46 int ret = uart_configure(uart_dev, &uart_cfg); in test_configure() 72 int ret = uart_configure(uart_dev, &uart_cfg); in test_config_get() 87 if (memcmp(&uart_cfg, &uart_cfg_check, sizeof(uart_cfg)) != 0) { in test_config_get()
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_max32.c | 89 static int api_configure(const struct device *dev, const struct uart_config *uart_cfg) in api_configure() argument 99 if (data->conf.parity != uart_cfg->parity) { in api_configure() 102 switch (uart_cfg->parity) { in api_configure() 135 data->conf.parity = uart_cfg->parity; in api_configure() 141 if (data->conf.stop_bits != uart_cfg->stop_bits) { in api_configure() 142 if (uart_cfg->stop_bits == UART_CFG_STOP_BITS_1) { in api_configure() 144 } else if (uart_cfg->stop_bits == UART_CFG_STOP_BITS_2) { in api_configure() 153 data->conf.stop_bits = uart_cfg->stop_bits; in api_configure() 162 if (data->conf.data_bits != uart_cfg->data_bits) { in api_configure() 163 err = MXC_UART_SetDataSize(regs, (5 + uart_cfg->data_bits)); in api_configure() [all …]
|
D | uart_rzt2m.c | 29 struct uart_config uart_cfg; member 314 switch (data->uart_cfg.stop_bits) { in rzt2m_uart_init() 322 LOG_ERR("Selected bit stop length is not supported: %u.", data->uart_cfg.stop_bits); in rzt2m_uart_init() 326 switch (data->uart_cfg.data_bits) { in rzt2m_uart_init() 335 data->uart_cfg.data_bits); in rzt2m_uart_init() 339 if (data->uart_cfg.baudrate > ARRAY_SIZE(baud_settings)) { in rzt2m_uart_init() 340 LOG_ERR("Selected baudrate variant is not supported: %u.", data->uart_cfg.baudrate); in rzt2m_uart_init() 343 baud_setting = baud_settings[data->uart_cfg.baudrate]; in rzt2m_uart_init() 350 switch (data->uart_cfg.parity) { in rzt2m_uart_init() 361 LOG_ERR("Unsupported parity: %u", data->uart_cfg.parity); in rzt2m_uart_init() [all …]
|
D | uart_nrfx_uart.c | 312 nrf_uart_config_t uart_cfg; in uart_nrfx_configure() local 317 uart_cfg.stop = NRF_UART_STOP_ONE; in uart_nrfx_configure() 320 uart_cfg.stop = NRF_UART_STOP_TWO; in uart_nrfx_configure() 337 uart_cfg.hwfc = NRF_UART_HWFC_DISABLED; in uart_nrfx_configure() 341 uart_cfg.hwfc = NRF_UART_HWFC_ENABLED; in uart_nrfx_configure() 351 uart_cfg.paritytype = NRF_UART_PARITYTYPE_EVEN; in uart_nrfx_configure() 355 uart_cfg.parity = NRF_UART_PARITY_EXCLUDED; in uart_nrfx_configure() 358 uart_cfg.parity = NRF_UART_PARITY_INCLUDED; in uart_nrfx_configure() 362 uart_cfg.parity = NRF_UART_PARITY_INCLUDED; in uart_nrfx_configure() 363 uart_cfg.paritytype = NRF_UART_PARITYTYPE_ODD; in uart_nrfx_configure() [all …]
|
D | uart_mchp_xec.c | 351 struct uart_config uart_cfg; in uart_xec_configure() local 355 uart_cfg.data_bits = LCR_CS5; in uart_xec_configure() 358 uart_cfg.data_bits = LCR_CS6; in uart_xec_configure() 361 uart_cfg.data_bits = LCR_CS7; in uart_xec_configure() 364 uart_cfg.data_bits = LCR_CS8; in uart_xec_configure() 373 uart_cfg.stop_bits = LCR_1_STB; in uart_xec_configure() 376 uart_cfg.stop_bits = LCR_2_STB; in uart_xec_configure() 385 uart_cfg.parity = LCR_PDIS; in uart_xec_configure() 388 uart_cfg.parity = LCR_EPS; in uart_xec_configure() 398 regs->LCR = uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity; in uart_xec_configure()
|
D | uart_bcm2711.c | 128 const struct bcm2711_uart_config *uart_cfg = dev->config; in uart_bcm2711_init() local 133 bcm2711_mu_lowlevel_init(uart_data->uart_addr, 1, uart_cfg->baud_rate, uart_cfg->clocks); in uart_bcm2711_init() 135 uart_cfg->irq_config_func(dev); in uart_bcm2711_init()
|
D | uart_mcux.c | 31 struct uart_config uart_cfg; member 110 data->uart_cfg = *cfg; in uart_mcux_configure() 121 *cfg = data->uart_cfg; in uart_mcux_config_get() 330 err = uart_mcux_configure(dev, &data->uart_cfg); in uart_mcux_init() 441 .uart_cfg = { \
|
D | uart_neorv32.c | 59 struct uart_config uart_cfg; member 200 data->uart_cfg = *cfg; in neorv32_uart_configure() 212 *cfg = data->uart_cfg; in neorv32_uart_config_get() 416 return neorv32_uart_configure(dev, &data->uart_cfg); in neorv32_uart_init() 492 .uart_cfg = { \
|
D | uart_pl011.c | 61 struct uart_config uart_cfg; member 275 memcpy(&data->uart_cfg, cfg, sizeof(data->uart_cfg)); in pl011_runtime_configure_internal() 300 *cfg = data->uart_cfg; in pl011_runtime_config_get() 511 pl011_runtime_configure_internal(dev, &data->uart_cfg, false); in pl011_init() 657 .uart_cfg = { \
|
D | uart_stm32.h | 92 struct uart_config *uart_cfg; member
|
D | uart_stm32.c | 480 struct uart_config *uart_cfg = data->uart_cfg; in uart_stm32_parameters_set() local 490 if (cfg == uart_cfg) { in uart_stm32_parameters_set() 525 if (cfg->baudrate != uart_cfg->baudrate) { in uart_stm32_parameters_set() 527 uart_cfg->baudrate = cfg->baudrate; in uart_stm32_parameters_set() 539 struct uart_config *uart_cfg = data->uart_cfg; in uart_stm32_configure() local 595 *uart_cfg = *cfg; in uart_stm32_configure() 604 struct uart_config *uart_cfg = data->uart_cfg; in uart_stm32_config_get() local 606 cfg->baudrate = uart_cfg->baudrate; in uart_stm32_config_get() 1989 struct uart_config *uart_cfg = data->uart_cfg; in uart_stm32_registers_configure() local 2005 uart_stm32_parameters_set(dev, uart_cfg); in uart_stm32_registers_configure() [all …]
|
D | uart_ns16550.c | 622 struct uart_config uart_cfg; local 626 uart_cfg.data_bits = LCR_CS5; 629 uart_cfg.data_bits = LCR_CS6; 632 uart_cfg.data_bits = LCR_CS7; 635 uart_cfg.data_bits = LCR_CS8; 644 uart_cfg.stop_bits = LCR_1_STB; 647 uart_cfg.stop_bits = LCR_2_STB; 656 uart_cfg.parity = LCR_PDIS; 659 uart_cfg.parity = LCR_EPS; 670 uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity);
|
D | uart_intel_lw.c | 81 struct uart_config uart_cfg; /* stores uart config from device tree*/ member 361 struct uart_config * const cfg_stored = &data->uart_cfg; in uart_intel_lw_configure() 418 *cfg_out = data->uart_cfg; in uart_intel_lw_config_get() 994 .uart_cfg = \
|
D | uart_altera.c | 91 struct uart_config uart_cfg; /* stores uart config from device tree*/ member 324 struct uart_config * const cfg_stored = &data->uart_cfg; in uart_altera_configure() 376 *cfg_out = data->uart_cfg; in uart_altera_config_get() 960 .uart_cfg = \
|
D | uart_ifx_cat1.c | 213 cyhal_uart_cfg_t uart_cfg = { in ifx_cat1_uart_configure() local 223 result = cyhal_uart_configure(&data->obj, &uart_cfg); in ifx_cat1_uart_configure()
|
/Zephyr-Core-3.7.0/samples/drivers/uart/native_tty/src/ |
D | main.c | 19 struct uart_config uart_cfg = { variable 68 uart_cfg.baudrate = 9600; in main() 69 printk("\nChanging baudrate of both uart devices to %d!\n\n", uart_cfg.baudrate); in main() 71 rc = uart_configure(uart0, &uart_cfg); in main() 75 rc = uart_configure(uart2, &uart_cfg); in main()
|
/Zephyr-Core-3.7.0/subsys/debug/gdbstub/ |
D | gdbstub_backend_serial.c | 16 static const struct uart_config uart_cfg = { in z_gdb_backend_init() local 33 ret = uart_configure(uart_dev, &uart_cfg); in z_gdb_backend_init()
|
/Zephyr-Core-3.7.0/drivers/bluetooth/hci/ |
D | h4_ifx_cyw43xxx.c | 70 struct uart_config uart_cfg; in bt_hci_uart_set_baudrate() local 74 err = uart_config_get(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate() 79 if (uart_cfg.baudrate != baudrate) { in bt_hci_uart_set_baudrate() 81 uart_cfg.baudrate = baudrate; in bt_hci_uart_set_baudrate() 82 err = uart_configure(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate()
|
/Zephyr-Core-3.7.0/subsys/modbus/ |
D | modbus_serial.c | 457 struct uart_config uart_cfg = { in configure_uart() local 463 uart_cfg.data_bits = UART_CFG_DATA_BITS_7; in configure_uart() 465 uart_cfg.data_bits = UART_CFG_DATA_BITS_8; in configure_uart() 471 uart_cfg.parity = param->serial.parity; in configure_uart() 472 uart_cfg.stop_bits = UART_CFG_STOP_BITS_1; in configure_uart() 476 uart_cfg.parity = param->serial.parity; in configure_uart() 477 uart_cfg.stop_bits = UART_CFG_STOP_BITS_2; in configure_uart() 490 uart_cfg.stop_bits = param->serial.stop_bits_client; in configure_uart() 497 if (uart_configure(cfg->dev, &uart_cfg) != 0) { in configure_uart()
|
/Zephyr-Core-3.7.0/drivers/i2c/ |
D | i2c_sc18im704.c | 242 struct uart_config uart_cfg = { in i2c_sc18im_init() local 257 ret = uart_configure(cfg->bus, &uart_cfg); in i2c_sc18im_init() 312 uart_cfg.baudrate = cfg->bus_speed; in i2c_sc18im_init() 313 ret = uart_configure(cfg->bus, &uart_cfg); in i2c_sc18im_init()
|
/Zephyr-Core-3.7.0/drivers/gnss/ |
D | gnss_u_blox_m10.c | 366 struct uart_config uart_cfg; in ubx_m10_set_uart_baudrate() local 375 ret = uart_config_get(config->uart, &uart_cfg); in ubx_m10_set_uart_baudrate() 379 uart_cfg.baudrate = baudrate; in ubx_m10_set_uart_baudrate() 381 ret = uart_configure(config->uart, &uart_cfg); in ubx_m10_set_uart_baudrate()
|
/Zephyr-Core-3.7.0/subsys/usb/device_next/class/ |
D | usbd_cdc_acm.c | 95 struct uart_config uart_cfg; member 324 struct uart_config *const cfg = &data->uart_cfg; in cdc_acm_update_uart_cfg() 961 *val = data->uart_cfg.baudrate; in cdc_acm_line_ctrl_get() 999 memcpy(cfg, &data->uart_cfg, sizeof(struct uart_config)); in cdc_acm_config_get()
|
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_async_api/src/ |
D | test_uart_async.c | 71 const struct uart_config uart_cfg = { in uart_async_test_init() local 78 __ASSERT_NO_MSG(uart_configure(uart_dev, &uart_cfg) == 0); in uart_async_test_init()
|