diff --git a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.c b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.c index 878e69c05..302bc0145 100644 --- a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.c +++ b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.c @@ -24,6 +24,8 @@ #include "hal.h" +#include "hal_mfs.h" + #include "portab.h" /*===========================================================================*/ @@ -34,6 +36,16 @@ /* Module exported variables. */ /*===========================================================================*/ +const MFSConfig mfscfg1 = { + .flashp = (BaseFlash *)&EFLD1, + .erased = 0xFFFFFFFFU, + .bank_size = 4096U, + .bank0_start = 128U, + .bank0_sectors = 2U, + .bank1_start = 130U, + .bank1_sectors = 2U +}; + /*===========================================================================*/ /* Module local types. */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.h b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.h index 25f3c4d4c..8b9cd80d5 100644 --- a/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.h +++ b/testhal/STM32/multi/EFL-MFS/cfg/stm32l476_discovery/portab.h @@ -39,6 +39,8 @@ #define PORTAB_SD1 SD2 +#define PORTAB_EFLD EFLD1 + /*===========================================================================*/ /* Module pre-compile time settings. */ /*===========================================================================*/ diff --git a/testhal/STM32/multi/EFL-MFS/main.c b/testhal/STM32/multi/EFL-MFS/main.c index 70313fb3a..ca8b03e9f 100644 --- a/testhal/STM32/multi/EFL-MFS/main.c +++ b/testhal/STM32/multi/EFL-MFS/main.c @@ -25,15 +25,7 @@ #include "portab.h" -const MFSConfig mfscfg1 = { - .flashp = (BaseFlash *)&EFLD1, - .erased = 0xFFFFFFFFU, - .bank_size = 4096U, - .bank0_start = 128U, - .bank0_sectors = 2U, - .bank1_start = 130U, - .bank1_sectors = 2U -}; +extern const MFSConfig mfscfg1; /* * LED blinker thread, times are in milliseconds. @@ -70,7 +62,7 @@ int main(void) { portab_setup(); /* Starting EFL driver.*/ - eflStart(&EFLD1, NULL); + eflStart(&PORTAB_EFLD, NULL); /* Starting a serial port for test report output.*/ sdStart(&PORTAB_SD1, NULL);