Home
last modified time | relevance | path

Searched refs:stop_bits (Results 1 – 25 of 57) 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_max32.c141 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()
444 .uart_conf.stop_bits = DT_INST_ENUM_IDX_OR(_num, stop_bits, UART_CFG_STOP_BITS_1), \
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_renesas_rz_scif.c122 switch (uart_config->stop_bits) { in uart_rz_scif_apply_config()
124 fsp_cfg->stop_bits = UART_STOP_BITS_1; in uart_rz_scif_apply_config()
127 fsp_cfg->stop_bits = UART_STOP_BITS_2; in uart_rz_scif_apply_config()
283 .stop_bits = \
284 DT_INST_ENUM_IDX_OR(n, stop_bits, UART_CFG_STOP_BITS_1), \
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_native_tty_bottom.h48 enum native_tty_bottom_stop_bits stop_bits; member
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_ifx_cat1.c105 static uint32_t _convert_uart_stop_bits_z_to_cyhal(enum uart_config_stop_bits stop_bits) in _convert_uart_stop_bits_z_to_cyhal() argument
109 switch (stop_bits) { in _convert_uart_stop_bits_z_to_cyhal()
215 .stop_bits = _convert_uart_stop_bits_z_to_cyhal(cfg->stop_bits), in ifx_cat1_uart_configure()
520 .dt_cfg.stop_bits = DT_INST_ENUM_IDX_OR(n, stop_bits, UART_CFG_STOP_BITS_1), \
Duart_native_tty.c93 switch (cfg->stop_bits) { in native_tty_conv_to_bottom_cfg()
95 bottom_cfg->stop_bits = NTB_STOP_BITS_1; in native_tty_conv_to_bottom_cfg()
98 bottom_cfg->stop_bits = NTB_STOP_BITS_2; in native_tty_conv_to_bottom_cfg()
398 .stop_bits = UART_CFG_STOP_BITS_1, \
Duart_lpc11u6x.h146 uint8_t stop_bits; member
184 uint8_t stop_bits; member
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 = \
432 DT_INST_ENUM_IDX_OR(n, stop_bits, UART_CFG_STOP_BITS_1), \
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_altera.c301 && (cfg_stored->stop_bits == cfg_in->stop_bits) in uart_altera_check_configuration()
965 .stop_bits = DT_INST_ENUM_IDX_OR(n, stop_bits, \
Duart_intel_lw.c338 && (cfg_stored->stop_bits == cfg_in->stop_bits) in uart_intel_lw_check_configuration()
999 .stop_bits = DT_INST_ENUM_IDX_OR(n, stop_bits, \
Duart_ene_kb1200.c74 switch (cfg->stop_bits) { in kb1200_uart_configure()
367 .stop_bits = UART_CFG_STOP_BITS_1, \
Duart_smartbond.c245 (cfg->stop_bits != UART_CFG_STOP_BITS_1 && cfg->stop_bits != UART_CFG_STOP_BITS_2) || in uart_smartbond_configure()
285 if (cfg->stop_bits == UART_CFG_STOP_BITS_2) { in uart_smartbond_configure()
796 .stop_bits = UART_CFG_STOP_BITS_1, \
Duart_esp32.c232 cfg->stop_bits = UART_CFG_STOP_BITS_1; in uart_esp32_config_get()
235 cfg->stop_bits = UART_CFG_STOP_BITS_1_5; in uart_esp32_config_get()
238 cfg->stop_bits = UART_CFG_STOP_BITS_2; in uart_esp32_config_get()
321 switch (cfg->stop_bits) { in uart_esp32_configure()
1059 .stop_bits = DT_INST_ENUM_IDX_OR(idx, 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/subsys/modbus/
Dmodbus_serial.c469 uart_cfg.stop_bits = UART_CFG_STOP_BITS_1; in configure_uart()
474 uart_cfg.stop_bits = UART_CFG_STOP_BITS_2; in configure_uart()
487 uart_cfg.stop_bits = param->serial.stop_bits_client; in configure_uart()

123