aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testhal/STM32/multi/UART/cfg-stm32f303_discovery/portab.c2
-rw-r--r--testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c2
-rw-r--r--testhal/STM32/multi/UART/cfg-stm32f746_discovery/portab.c10
3 files changed, 9 insertions, 5 deletions
diff --git a/testhal/STM32/multi/UART/cfg-stm32f303_discovery/portab.c b/testhal/STM32/multi/UART/cfg-stm32f303_discovery/portab.c
index 593439eb9..99dec7674 100644
--- a/testhal/STM32/multi/UART/cfg-stm32f303_discovery/portab.c
+++ b/testhal/STM32/multi/UART/cfg-stm32f303_discovery/portab.c
@@ -74,6 +74,8 @@ UARTConfig uart_cfg_1 = {
void portab_setup(void) {
+ palSetPadMode(GPIOA, 9, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 10, PAL_MODE_ALTERNATE(7));
}
/** @} */
diff --git a/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c b/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
index b1b9c2a9d..77288cf43 100644
--- a/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
+++ b/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
@@ -73,6 +73,8 @@ UARTConfig uart_cfg_1 = {
void portab_setup(void) {
+ palSetPadMode(GPIOA, 2, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7));
}
/** @} */
diff --git a/testhal/STM32/multi/UART/cfg-stm32f746_discovery/portab.c b/testhal/STM32/multi/UART/cfg-stm32f746_discovery/portab.c
index 2a4e9789e..6c400ab4c 100644
--- a/testhal/STM32/multi/UART/cfg-stm32f746_discovery/portab.c
+++ b/testhal/STM32/multi/UART/cfg-stm32f746_discovery/portab.c
@@ -44,11 +44,11 @@ void rxerr(UARTDriver *uartp, uartflags_t e);
* UART driver configuration structure.
*/
UARTConfig uart_cfg_1 = {
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
NULL,
0,
38400,