aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery')
-rw-r--r--testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/halconf.h2
-rw-r--r--testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.c10
-rw-r--r--testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.h4
3 files changed, 14 insertions, 2 deletions
diff --git a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/halconf.h b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/halconf.h
index 51783ad62..e34c3c4bf 100644
--- a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/halconf.h
+++ b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/halconf.h
@@ -146,7 +146,7 @@
* @brief Enables the SERIAL subsystem.
*/
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
-#define HAL_USE_SERIAL FALSE
+#define HAL_USE_SERIAL TRUE
#endif
/**
diff --git a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.c b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.c
index 0918c108c..639e2f97e 100644
--- a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.c
+++ b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.c
@@ -22,6 +22,8 @@
* @{
*/
+#include "hal.h"
+
#include "portab.h"
/*===========================================================================*/
@@ -48,4 +50,12 @@
/* Module exported functions. */
/*===========================================================================*/
+void portab_setup(void) {
+
+ /*
+ * LED line as output.
+ */
+ palSetLineMode(LINE_LED_GREEN, PAL_MODE_OUTPUT_PUSHPULL);
+}
+
/** @} */
diff --git a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.h b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.h
index 8e7c1cdcf..2f547774a 100644
--- a/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.h
+++ b/testhal/STM32/multi/QSPI-MFS/cfg-stm32l476_discovery/portab.h
@@ -37,6 +37,8 @@
#define PORTAB_LINE_BUTTON LINE_JOY_CENTER
#define PORTAB_BUTTON_PRESSED PAL_HIGH
+#define PORTAB_SD1 SD2
+
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -60,7 +62,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-
+ void portab_setup(void);
#ifdef __cplusplus
}
#endif