Home
last modified time | relevance | path

Searched refs:uart_config (Results 1 – 25 of 69) sorted by relevance

123

/Zephyr-latest/drivers/serial/
Duart_renesas_rz_scif.c21 struct uart_config uart_config; member
80 struct uart_config *uart_config = &data->uart_config; in uart_rz_scif_apply_config() local
89 fsp_err = R_SCIF_UART_BaudCalculate(data->fsp_ctrl, uart_config->baudrate, false, 5000, in uart_rz_scif_apply_config()
97 switch (uart_config->data_bits) { in uart_rz_scif_apply_config()
108 switch (uart_config->parity) { in uart_rz_scif_apply_config()
122 switch (uart_config->stop_bits) { in uart_rz_scif_apply_config()
135 switch (uart_config->flow_ctrl) { in uart_rz_scif_apply_config()
157 static int uart_rz_scif_configure(const struct device *dev, const struct uart_config *cfg) in uart_rz_scif_configure()
164 memcpy(&data->uart_config, cfg, sizeof(struct uart_config)); in uart_rz_scif_configure()
190 static int uart_rz_scif_config_get(const struct device *dev, struct uart_config *cfg) in uart_rz_scif_config_get()
[all …]
Duart_mcux.c31 struct uart_config uart_cfg;
39 const struct uart_config *cfg) in uart_mcux_configure()
43 uart_config_t uart_config; in uart_mcux_configure() local
56 UART_GetDefaultConfig(&uart_config); in uart_mcux_configure()
58 uart_config.enableTx = true; in uart_mcux_configure()
59 uart_config.enableRx = true; in uart_mcux_configure()
60 uart_config.baudRate_Bps = cfg->baudrate; in uart_mcux_configure()
66 uart_config.stopBitCount = kUART_OneStopBit; in uart_mcux_configure()
69 uart_config.stopBitCount = kUART_TwoStopBit; in uart_mcux_configure()
79 uart_config.enableRxRTS = false; in uart_mcux_configure()
[all …]
Duart_native_tty.c55 struct uart_config uart_config; member
75 const struct uart_config *cfg) in native_tty_conv_to_bottom_cfg()
164 static int native_tty_configure(const struct device *dev, const struct uart_config *cfg) in native_tty_configure()
325 struct uart_config uart_config = ((struct native_tty_config *)dev->config)->uart_config; in native_tty_serial_init() local
340 uart_config.baudrate = data->cmd_baudrate; in native_tty_serial_init()
356 if (native_tty_configure(dev, &uart_config)) { in native_tty_serial_init()
393 .uart_config = \
Duart_mcux_lpuart.c124 struct uart_config uart_config; member
969 static int mcux_lpuart_configure_basic(const struct device *dev, const struct uart_config *cfg, in mcux_lpuart_configure_basic()
970 lpuart_config_t *uart_config) in mcux_lpuart_configure_basic() argument
975 uart_config->parityMode = kLPUART_ParityDisabled; in mcux_lpuart_configure_basic()
978 uart_config->parityMode = kLPUART_ParityOdd; in mcux_lpuart_configure_basic()
981 uart_config->parityMode = kLPUART_ParityEven; in mcux_lpuart_configure_basic()
991 uart_config->dataBitsCount = kLPUART_SevenDataBits; in mcux_lpuart_configure_basic()
995 uart_config->dataBitsCount = kLPUART_EightDataBits; in mcux_lpuart_configure_basic()
1005 uart_config->stopBitCount = kLPUART_OneStopBit; in mcux_lpuart_configure_basic()
1008 uart_config->stopBitCount = kLPUART_TwoStopBit; in mcux_lpuart_configure_basic()
[all …]
Duart_mcux_iuart.c228 uart_config_t uart_config; in mcux_iuart_init() local
241 UART_GetDefaultConfig(&uart_config); in mcux_iuart_init()
242 uart_config.enableTx = true; in mcux_iuart_init()
243 uart_config.enableRx = true; in mcux_iuart_init()
244 uart_config.baudRate_Bps = config->baud_rate; in mcux_iuart_init()
249 uart_config.parityMode = kUART_ParityDisabled; in mcux_iuart_init()
252 uart_config.parityMode = kUART_ParityEven; in mcux_iuart_init()
255 uart_config.parityMode = kUART_ParityOdd; in mcux_iuart_init()
261 UART_Init(config->base, &uart_config, clock_freq); in mcux_iuart_init()
Duart_mchp_xec.c201 struct uart_config uart_config; member
314 dev_data->uart_config.baudrate = baud_rate; in set_baud_rate()
325 const struct uart_config *cfg) in uart_xec_configure()
351 struct uart_config uart_cfg; in uart_xec_configure()
395 dev_data->uart_config = *cfg; in uart_xec_configure()
427 struct uart_config *cfg) in uart_xec_config_get()
431 cfg->baudrate = data->uart_config.baudrate; in uart_xec_config_get()
432 cfg->parity = data->uart_config.parity; in uart_xec_config_get()
433 cfg->stop_bits = data->uart_config.stop_bits; in uart_xec_config_get()
434 cfg->data_bits = data->uart_config.data_bits; in uart_xec_config_get()
[all …]
Duart_rv32m1_lpuart.c244 lpuart_config_t uart_config; in rv32m1_lpuart_init() local
261 LPUART_GetDefaultConfig(&uart_config); in rv32m1_lpuart_init()
262 uart_config.enableTx = true; in rv32m1_lpuart_init()
263 uart_config.enableRx = true; in rv32m1_lpuart_init()
265 uart_config.enableRxRTS = true; in rv32m1_lpuart_init()
266 uart_config.enableTxCTS = true; in rv32m1_lpuart_init()
268 uart_config.baudRate_Bps = config->baud_rate; in rv32m1_lpuart_init()
270 LPUART_Init(config->base, &uart_config, clock_freq); in rv32m1_lpuart_init()
Duart_cc13xx_cc26xx.c37 struct uart_config uart_config; member
94 const struct uart_config *cfg) in uart_cc13xx_cc26xx_configure()
188 data->uart_config = *cfg; in uart_cc13xx_cc26xx_configure()
195 struct uart_config *cfg) in uart_cc13xx_cc26xx_config_get()
199 *cfg = data->uart_config; in uart_cc13xx_cc26xx_config_get()
419 &data->uart_config) != 0) { in postNotifyFxn()
445 ret = uart_cc13xx_cc26xx_configure(dev, &data->uart_config); in uart_cc13xx_cc26xx_pm_action()
596 ret = uart_cc13xx_cc26xx_configure(dev, &data->uart_config);\
618 .uart_config = { \
Duart_handlers.c63 struct uart_config *cfg) in z_vrfy_uart_config_get()
66 K_OOPS(K_SYSCALL_MEMORY_WRITE(cfg, sizeof(struct uart_config))); in z_vrfy_uart_config_get()
73 const struct uart_config *cfg) in z_vrfy_uart_configure()
76 K_OOPS(K_SYSCALL_MEMORY_READ(cfg, sizeof(struct uart_config))); in z_vrfy_uart_configure()
Duart_mcux_lpsci.c241 lpsci_config_t uart_config; in mcux_lpsci_init() local
254 LPSCI_GetDefaultConfig(&uart_config); in mcux_lpsci_init()
255 uart_config.enableTx = true; in mcux_lpsci_init()
256 uart_config.enableRx = true; in mcux_lpsci_init()
257 uart_config.baudRate_Bps = config->baud_rate; in mcux_lpsci_init()
259 LPSCI_Init(config->base, &uart_config, clock_freq); in mcux_lpsci_init()
Duart_numicro.c24 struct uart_config ucfg;
101 const struct uart_config *cfg) in uart_numicro_configure()
137 struct uart_config *cfg) in uart_numicro_config_get()
Duart_mcux_flexcomm.c87 struct uart_config uart_config; member
291 static int mcux_flexcomm_uart_configure(const struct device *dev, const struct uart_config *cfg) in mcux_flexcomm_uart_configure()
295 struct uart_config *uart_config = &data->uart_config; in mcux_flexcomm_uart_configure() local
369 uart_config->parity = cfg->parity; in mcux_flexcomm_uart_configure()
370 uart_config->baudrate = cfg->baudrate; in mcux_flexcomm_uart_configure()
371 uart_config->stop_bits = cfg->stop_bits; in mcux_flexcomm_uart_configure()
372 uart_config->data_bits = cfg->data_bits; in mcux_flexcomm_uart_configure()
373 uart_config->flow_ctrl = cfg->flow_ctrl; in mcux_flexcomm_uart_configure()
379 struct uart_config *cfg) in mcux_flexcomm_uart_config_get()
382 *cfg = data->uart_config; in mcux_flexcomm_uart_config_get()
[all …]
Dusart_sam.c254 const struct uart_config *cfg) in usart_sam_configure()
297 struct uart_config *cfg) in usart_sam_config_get()
502 struct uart_config uart_config = { in usart_sam_init() local
510 uart_config.flow_ctrl = UART_CFG_FLOW_CTRL_RTS_CTS; in usart_sam_init()
512 return usart_sam_configure(dev, &uart_config); in usart_sam_init()
Duart_sam.c165 const struct uart_config *cfg) in uart_sam_configure()
204 struct uart_config *cfg) in uart_sam_config_get()
410 struct uart_config uart_config = { in uart_sam_init() local
417 return uart_sam_configure(dev, &uart_config); in uart_sam_init()
Duart_nrfx_uart.c45 struct uart_config uart_config; member
309 const struct uart_config *cfg) in uart_nrfx_configure()
376 data->uart_config = *cfg; in uart_nrfx_configure()
383 struct uart_config *cfg) in uart_nrfx_config_get()
387 *cfg = data->uart_config; in uart_nrfx_config_get()
1001 err = uart_nrfx_configure(dev, &data->uart_config); in uart_nrfx_init()
1125 .uart_config = {
Duart_ns16550.c362 struct uart_config uart_config; member
565 dev_data->uart_config.baudrate = baud_rate;
570 const struct uart_config *cfg)
636 struct uart_config uart_cfg;
680 dev_data->uart_config = *cfg;
733 struct uart_config *cfg)
737 cfg->baudrate = data->uart_config.baudrate;
738 cfg->parity = data->uart_config.parity;
739 cfg->stop_bits = data->uart_config.stop_bits;
740 cfg->data_bits = data->uart_config.data_bits;
[all …]
Duart_stm32.h92 struct uart_config *uart_cfg;
Duart_nrfx_uarte2.c136 struct uart_config uart_config; member
224 hwfc = data->uart_config.flow_ctrl == UART_CFG_FLOW_CTRL_RTS_CTS; in on_tx_done()
397 hwfc = data->uart_config.flow_ctrl == UART_CFG_FLOW_CTRL_RTS_CTS; in api_tx()
465 if (data->uart_config.flow_ctrl == UART_CFG_FLOW_CTRL_RTS_CTS) { in get_keep_fifo_content_flag()
640 const struct uart_config *cfg) in uarte_nrfx_configure()
708 data->uart_config = *cfg; in uarte_nrfx_configure()
714 struct uart_config *cfg) in uarte_nrfx_config_get()
718 *cfg = data->uart_config; in uarte_nrfx_config_get()
1038 (.uart_config = { \
Duart_max32.c24 struct uart_config uart_conf;
37 struct uart_config conf; /* baudrate, stopbits, ... */
89 static int api_configure(const struct device *dev, const struct uart_config *uart_cfg) in api_configure()
198 static int api_config_get(const struct device *dev, struct uart_config *uart_cfg) in api_config_get()
Duart_altera.c91 struct uart_config uart_cfg; /* stores uart config from device tree*/
295 static bool uart_altera_check_configuration(const struct uart_config *cfg_stored, in uart_altera_check_configuration()
296 const struct uart_config *cfg_in) in uart_altera_check_configuration()
320 const struct uart_config *cfg_in) in uart_altera_configure()
324 struct uart_config * const cfg_stored = &data->uart_cfg; in uart_altera_configure()
364 struct uart_config *cfg_out) in uart_altera_config_get()
/Zephyr-latest/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config.c28 const struct uart_config uart_cfg = {
60 struct uart_config uart_cfg_check; in test_config_get()
Dtest_uart_config_wide.c28 const struct uart_config uart_cfg_wide = {
60 struct uart_config uart_cfg_check; in test_config_get_wide()
/Zephyr-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c139 struct uart_config test_expected_uart_config; in ZTEST()
140 struct uart_config test_uart_config = { .baudrate = UART_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/include/zephyr/drivers/
Duart.h120 struct uart_config { struct
433 const struct uart_config *cfg);
450 struct uart_config *cfg);
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c16 static const struct uart_config uart_cfg = { in z_gdb_backend_init()

123