Skip to content

Commit 7b82235

Browse files
nordic-bamicarlescufi
authored andcommitted
tests: drivers: Update uart_elementary suite with different configuration
Conigure UART to use 2 stop bits and even parity in 'dual transmission' case to cover more driver code cases. Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
1 parent 41b856f commit 7b82235

File tree

1 file changed

+4
-4
lines changed
  • tests/drivers/uart/uart_elementary/src

1 file changed

+4
-4
lines changed

tests/drivers/uart/uart_elementary/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ ZTEST(uart_elementary, test_uart_dual_port_transmission)
233233
{
234234
int err;
235235
struct uart_config test_uart_config = { .baudrate = 115200,
236-
.parity = UART_CFG_PARITY_NONE,
237-
.stop_bits = UART_CFG_STOP_BITS_1,
236+
.parity = UART_CFG_PARITY_EVEN,
237+
.stop_bits = UART_CFG_STOP_BITS_2,
238238
.data_bits = UART_CFG_DATA_BITS_8,
239239
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
240240

241241
#if defined(CONFIG_SETUP_MISMATCH_TEST)
242242
struct uart_config test_uart_config_aux = { .baudrate = 9600,
243-
.parity = UART_CFG_PARITY_NONE,
244-
.stop_bits = UART_CFG_STOP_BITS_1,
243+
.parity = UART_CFG_PARITY_EVEN,
244+
.stop_bits = UART_CFG_STOP_BITS_2,
245245
.data_bits = UART_CFG_DATA_BITS_8,
246246
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
247247
#endif

0 commit comments

Comments
 (0)