Skip to content

Commit 41d3709

Browse files
committed
wip: Add log to the uart_elementary test
1 parent f339661 commit 41d3709

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • tests/drivers/uart/uart_elementary/src

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ ZTEST(uart_elementary, test_uart_basic_transmission)
235235
ZTEST(uart_elementary, test_uart_dual_port_transmission)
236236
{
237237
int err;
238+
#if 0
238239
struct uart_config test_uart_config = { .baudrate = UART_BAUDRATE,
239240
.parity = UART_CFG_PARITY_EVEN,
240241
.stop_bits = UART_CFG_STOP_BITS_2,
@@ -256,8 +257,8 @@ ZTEST(uart_elementary, test_uart_dual_port_transmission)
256257
#else
257258
err = uart_configure(uart_dev_aux, &test_uart_config);
258259
#endif
259-
260260
zassert_equal(err, 0, "Unexpected error when configuring UART1: %d", err);
261+
#endif
261262

262263
err = uart_irq_callback_set(uart_dev, interrupt_driven_uart_callback_main_uart);
263264
zassert_equal(err, 0, "Unexpected error when setting callback for UART0 %d", err);
@@ -317,6 +318,11 @@ ZTEST(uart_elementary, test_uart_dual_port_transmission)
317318
"UART configuration mismatch error not detected");
318319

319320
#else
321+
printf("buffer: %02x %02x %02x %02x\n",
322+
test_buffer[0],
323+
test_buffer[1],
324+
test_buffer[2],
325+
test_buffer[3]);
320326
for (int index = 0; index < TEST_BUFFER_LEN; index++) {
321327
zassert_equal(test_buffer[index], test_pattern[index],
322328
"UART0 received data byte %d does not match pattern 0x%x != 0x%x",

0 commit comments

Comments
 (0)