tests: drivers: uart: moving struct declaration
Moving struct in preparation of wide test. Signed-off-by: Jeroen van Dooren <jeroen.van.dooren@nobleo.nl>
This commit is contained in:
parent
6ab706913a
commit
41339562c6
|
@ -25,7 +25,6 @@
|
|||
*/
|
||||
|
||||
#include "test_uart.h"
|
||||
struct uart_config uart_cfg_check;
|
||||
const struct uart_config uart_cfg = {
|
||||
.baudrate = 115200,
|
||||
.parity = UART_CFG_PARITY_NONE,
|
||||
|
@ -58,6 +57,7 @@ static int test_configure(void)
|
|||
/* test UART configure get (retrieve configuration) */
|
||||
static int test_config_get(void)
|
||||
{
|
||||
struct uart_config uart_cfg_check;
|
||||
const struct device *const uart_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
|
||||
|
||||
if (!device_is_ready(uart_dev)) {
|
||||
|
|
Loading…
Reference in a new issue