platform: Add platform default UART control definition
Add platform default UART control definition.
For platforms that wishes to use a UART configuration different from
the default CMSIS control value the default values need to be supplied
in the call to set control.
This makes it possible for a platform to set for example Hardware
Flow Control configuration.
Having support for Hardware Flow Control is useful for running the TF-M
regression tests reliably in a CI system.
Change-Id: I797c5a66a71bc8167bee2f051073d783d13dea63
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
diff --git a/platform/ext/common/uart_stdout.c b/platform/ext/common/uart_stdout.c
index 811dfe4..ac37934 100644
--- a/platform/ext/common/uart_stdout.c
+++ b/platform/ext/common/uart_stdout.c
@@ -93,7 +93,7 @@
ret = STDIO_DRIVER.PowerControl(ARM_POWER_FULL);
ASSERT_HIGH(ret);
- ret = STDIO_DRIVER.Control(ARM_USART_MODE_ASYNCHRONOUS,
+ ret = STDIO_DRIVER.Control(DEFAULT_UART_CONTROL | ARM_USART_MODE_ASYNCHRONOUS,
DEFAULT_UART_BAUDRATE);
ASSERT_HIGH(ret);
(void)ret;