diff options
author | QMK Bot <hello@qmk.fm> | 2022-12-02 10:56:12 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-12-02 10:56:12 +0000 |
commit | 68c54d846d98754e8ba36245e915e621d35500f9 (patch) | |
tree | 6791b9b23212f236bd4e2f7a4a28bd1964686b2a /platforms/chibios/boards/BLACKPILL_STM32_F401/configs | |
parent | e85439eb0472b22ad83d5e99a698aa41e398ef74 (diff) | |
parent | cf3c26533cadf4e6739dbc9117caad01df2fa5e3 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'platforms/chibios/boards/BLACKPILL_STM32_F401/configs')
-rw-r--r-- | platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h b/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h index e181422eba..6d132ea6f3 100644 --- a/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h +++ b/platforms/chibios/boards/BLACKPILL_STM32_F401/configs/config.h @@ -19,12 +19,22 @@ #ifndef STM32_LSECLK # define STM32_LSECLK 32768U -#endif // STM32_LSECLK +#endif // STM32_LSECLK #ifndef STM32_HSECLK # define STM32_HSECLK 25000000U -#endif // STM32_HSECLK +#endif // STM32_HSECLK #ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP # define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE #endif + +#ifdef WEAR_LEVELING_EMBEDDED_FLASH +# ifndef WEAR_LEVELING_EFL_FIRST_SECTOR +# ifdef BOOTLOADER_TINYUF2 +# define WEAR_LEVELING_EFL_FIRST_SECTOR 3 +# else +# define WEAR_LEVELING_EFL_FIRST_SECTOR 1 +# endif +# endif +#endif |