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>
This commit is contained in:
parent
41b856f8dd
commit
7b82235e1e
1 changed files with 4 additions and 4 deletions
|
@ -233,15 +233,15 @@ ZTEST(uart_elementary, test_uart_dual_port_transmission)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
struct uart_config test_uart_config = { .baudrate = 115200,
|
struct uart_config test_uart_config = { .baudrate = 115200,
|
||||||
.parity = UART_CFG_PARITY_NONE,
|
.parity = UART_CFG_PARITY_EVEN,
|
||||||
.stop_bits = UART_CFG_STOP_BITS_1,
|
.stop_bits = UART_CFG_STOP_BITS_2,
|
||||||
.data_bits = UART_CFG_DATA_BITS_8,
|
.data_bits = UART_CFG_DATA_BITS_8,
|
||||||
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
||||||
|
|
||||||
#if defined(CONFIG_SETUP_MISMATCH_TEST)
|
#if defined(CONFIG_SETUP_MISMATCH_TEST)
|
||||||
struct uart_config test_uart_config_aux = { .baudrate = 9600,
|
struct uart_config test_uart_config_aux = { .baudrate = 9600,
|
||||||
.parity = UART_CFG_PARITY_NONE,
|
.parity = UART_CFG_PARITY_EVEN,
|
||||||
.stop_bits = UART_CFG_STOP_BITS_1,
|
.stop_bits = UART_CFG_STOP_BITS_2,
|
||||||
.data_bits = UART_CFG_DATA_BITS_8,
|
.data_bits = UART_CFG_DATA_BITS_8,
|
||||||
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue