Home
last modified time | relevance | path

Searched refs:stop_bits (Results 1 – 25 of 63) sorted by relevance

123

/Zephyr-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c142 .stop_bits = UART_CFG_STOP_BITS_1, in ZTEST()
160 zassert_equal(test_uart_config.stop_bits, test_expected_uart_config.stop_bits, in ZTEST()
162 test_uart_config.stop_bits, test_expected_uart_config.stop_bits); in ZTEST()
183 .stop_bits = UART_CFG_STOP_BITS_1, in ZTEST()
203 .stop_bits = UART_CFG_STOP_BITS_1, in ZTEST()
240 .stop_bits = UART_CFG_STOP_BITS_2, in ZTEST()
247 .stop_bits = UART_CFG_STOP_BITS_2, in ZTEST()
/Zephyr-latest/drivers/serial/
Duart_b91.c253 uint8_t stop_bits; in uart_b91_configure() local
269 if (cfg->stop_bits == UART_CFG_STOP_BITS_1) { in uart_b91_configure()
270 stop_bits = UART_STOP_BIT_1; in uart_b91_configure()
271 } else if (cfg->stop_bits == UART_CFG_STOP_BITS_1_5) { in uart_b91_configure()
272 stop_bits = UART_STOP_BIT_1P5; in uart_b91_configure()
273 } else if (cfg->stop_bits == UART_CFG_STOP_BITS_2) { in uart_b91_configure()
274 stop_bits = UART_STOP_BIT_2; in uart_b91_configure()
286 uart_b91_init(uart, divider, bwpc, parity, stop_bits); in uart_b91_configure()
Duart_native_tty_bottom.h48 enum native_tty_bottom_stop_bits stop_bits; member
Duart_native_tty_bottom.c128 enum native_tty_bottom_stop_bits stop_bits) in native_tty_stop_bits_set() argument
130 switch (stop_bits) { in native_tty_stop_bits_set()
213 native_tty_stop_bits_set(&ter, cfg->stop_bits); in native_tty_configure_bottom()
Duart_lpc11u6x.c132 switch (cfg->stop_bits) { in lpc11u6x_uart0_configure()
174 data->stop_bits = cfg->stop_bits; in lpc11u6x_uart0_configure()
189 cfg->stop_bits = data->stop_bits; in lpc11u6x_uart0_config_get()
364 data->stop_bits = UART_CFG_STOP_BITS_1; in lpc11u6x_uart0_init()
539 switch (cfg->stop_bits) { in lpc11u6x_uartx_configure()
594 data->stop_bits = cfg->stop_bits; in lpc11u6x_uartx_configure()
608 cfg->stop_bits = data->stop_bits; in lpc11u6x_uartx_config_get()
797 data->stop_bits = UART_CFG_STOP_BITS_1; in lpc11u6x_uartx_init()
Dusart_sam.c163 static uint32_t usart_sam_cfg2sam_stop_bits(uint8_t stop_bits) in usart_sam_cfg2sam_stop_bits() argument
165 switch (stop_bits) { in usart_sam_cfg2sam_stop_bits()
264 cfg->stop_bits == UART_CFG_STOP_BITS_0_5 || in usart_sam_configure()
280 | usart_sam_cfg2sam_stop_bits(cfg->stop_bits) in usart_sam_configure()
303 cfg->stop_bits = usart_sam_get_stop_bits(dev); in usart_sam_config_get()
505 .stop_bits = UART_CFG_STOP_BITS_1, in usart_sam_init()
Duart_gecko.c583 if (uart_cfg->stop_bits != cfg->stop_bits) { in uart_gecko_configure()
615 cfg->stop_bits = uart_cfg->stop_bits; in uart_gecko_config_get()
647 usartInit.stopbits = uart_gecko_cfg2ll_stopbits(uart_cfg->stop_bits); in uart_gecko_init()
843 .stop_bits = DT_INST_ENUM_IDX(idx, stop_bits), \
910 .stop_bits = DT_INST_ENUM_IDX(idx, stop_bits), \
946 .stop_bits = DT_INST_ENUM_IDX(idx, stop_bits), \
Duart_native_tty.c95 switch (cfg->stop_bits) { in native_tty_conv_to_bottom_cfg()
97 bottom_cfg->stop_bits = NTB_STOP_BITS_1; in native_tty_conv_to_bottom_cfg()
100 bottom_cfg->stop_bits = NTB_STOP_BITS_2; in native_tty_conv_to_bottom_cfg()
402 .stop_bits = UART_CFG_STOP_BITS_1, \
Duart_lpc11u6x.h146 uint8_t stop_bits; member
184 uint8_t stop_bits; member
Duart_renesas_rz_sci.c156 switch (uart_config->stop_bits) { in uart_rz_sci_apply_config()
158 fsp_cfg->stop_bits = UART_STOP_BITS_1; in uart_rz_sci_apply_config()
161 fsp_cfg->stop_bits = UART_STOP_BITS_2; in uart_rz_sci_apply_config()
483 .stop_bits = \
484 DT_INST_ENUM_IDX_OR(n, stop_bits, UART_CFG_STOP_BITS_1), \
Duart_renesas_rz_scif.c149 switch (uart_config->stop_bits) { in uart_rz_scif_apply_config()
151 fsp_cfg->stop_bits = UART_STOP_BITS_1; in uart_rz_scif_apply_config()
154 fsp_cfg->stop_bits = UART_STOP_BITS_2; in uart_rz_scif_apply_config()
511 .stop_bits = DT_INST_ENUM_IDX(n, stop_bits), \
Duart_mchp_xec.c371 switch (cfg->stop_bits) { 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()
398 regs->LCR = uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity; in uart_xec_configure()
433 cfg->stop_bits = data->uart_config.stop_bits; in uart_xec_config_get()
1100 .uart_config.stop_bits = UART_CFG_STOP_BITS_1, \
Duart_rzt2m.c314 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()
431 .stop_bits = DT_INST_ENUM_IDX(n, stop_bits), \
Duart_cc23x0.c97 switch (cfg->stop_bits) { in uart_cc23x0_configure()
397 .stop_bits = DT_INST_ENUM_IDX(n, stop_bits), \
Duart_mcux_flexcomm.c298 usart_stop_bit_count_t stop_bits; in mcux_flexcomm_uart_configure() local
322 if (cfg->stop_bits == UART_CFG_STOP_BITS_1) { in mcux_flexcomm_uart_configure()
323 stop_bits = kUSART_OneStopBit; in mcux_flexcomm_uart_configure()
324 } else if (cfg->stop_bits == UART_CFG_STOP_BITS_2) { in mcux_flexcomm_uart_configure()
325 stop_bits = kUSART_TwoStopBit; in mcux_flexcomm_uart_configure()
329 usart_config.stopBitCount = stop_bits; in mcux_flexcomm_uart_configure()
371 uart_config->stop_bits = cfg->stop_bits; in mcux_flexcomm_uart_configure()
1049 cfg->stop_bits = UART_CFG_STOP_BITS_1; in mcux_flexcomm_init()
Duart_sam.c174 if (cfg->stop_bits != UART_CFG_STOP_BITS_1 || in uart_sam_configure()
211 cfg->stop_bits = UART_CFG_STOP_BITS_1; in uart_sam_config_get()
413 .stop_bits = UART_CFG_STOP_BITS_1, in uart_sam_init()
Duart_silabs_eusart.c402 eusartInit.stopbits = uart_silabs_eusart_cfg2ll_stopbits(uart_cfg->stop_bits); in uart_silabs_eusart_init()
502 .stop_bits = DT_INST_ENUM_IDX(idx, stop_bits), \
Duart_max32.c197 if (data->conf.stop_bits != uart_cfg->stop_bits) { in api_configure()
198 if (uart_cfg->stop_bits == UART_CFG_STOP_BITS_1) { in api_configure()
200 } else if (uart_cfg->stop_bits == UART_CFG_STOP_BITS_2) { in api_configure()
209 data->conf.stop_bits = uart_cfg->stop_bits; in api_configure()
1047 .uart_conf.stop_bits = DT_INST_ENUM_IDX(_num, stop_bits), \
Duart_cc13xx_cc26xx.c121 switch (cfg->stop_bits) { in uart_cc13xx_cc26xx_configure()
621 .stop_bits = DT_INST_ENUM_IDX(n, stop_bits), \
Duart_altera.c301 && (cfg_stored->stop_bits == cfg_in->stop_bits) in uart_altera_check_configuration()
964 .stop_bits = DT_INST_ENUM_IDX(n, stop_bits), \
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c19 .stop_bits = UART_CFG_STOP_BITS_1, in z_gdb_backend_init()
/Zephyr-latest/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config.c31 .stop_bits = UART_CFG_STOP_BITS_1,
Dtest_uart_config_wide.c31 .stop_bits = UART_CFG_STOP_BITS_1,
/Zephyr-latest/samples/drivers/uart/native_tty/src/
Dmain.c22 .stop_bits = UART_CFG_STOP_BITS_1,
/Zephyr-latest/samples/boards/st/uart/circular_dma/src/
Dmain.c29 .stop_bits = UART_CFG_STOP_BITS_1,

123