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;
|
||||
struct uart_config test_uart_config = { .baudrate = 115200,
|
||||
.parity = UART_CFG_PARITY_NONE,
|
||||
.stop_bits = UART_CFG_STOP_BITS_1,
|
||||
.parity = UART_CFG_PARITY_EVEN,
|
||||
.stop_bits = UART_CFG_STOP_BITS_2,
|
||||
.data_bits = UART_CFG_DATA_BITS_8,
|
||||
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
||||
|
||||
#if defined(CONFIG_SETUP_MISMATCH_TEST)
|
||||
struct uart_config test_uart_config_aux = { .baudrate = 9600,
|
||||
.parity = UART_CFG_PARITY_NONE,
|
||||
.stop_bits = UART_CFG_STOP_BITS_1,
|
||||
.parity = UART_CFG_PARITY_EVEN,
|
||||
.stop_bits = UART_CFG_STOP_BITS_2,
|
||||
.data_bits = UART_CFG_DATA_BITS_8,
|
||||
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE };
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue