diff options
author | Nick Brassel <nick@tzarc.org> | 2021-05-13 12:29:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 12:29:28 +1000 |
commit | a2412e3f4c3b17778d4eb72d9fcfcbffa04d1c7b (patch) | |
tree | 0bfb6eeefae0b4844565dced5470a4c19728ec38 /platforms/chibios/BLACKPILL_STM32_F411 | |
parent | 9633f9a60f9b987c09edf28517a093a640a25d03 (diff) |
Allow for overriding clocks on F4xx. (#12886)
Diffstat (limited to 'platforms/chibios/BLACKPILL_STM32_F411')
-rw-r--r-- | platforms/chibios/BLACKPILL_STM32_F411/configs/config.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/platforms/chibios/BLACKPILL_STM32_F411/configs/config.h b/platforms/chibios/BLACKPILL_STM32_F411/configs/config.h index 1c9d9c6126..e181422eba 100644 --- a/platforms/chibios/BLACKPILL_STM32_F411/configs/config.h +++ b/platforms/chibios/BLACKPILL_STM32_F411/configs/config.h @@ -17,8 +17,13 @@ #define BOARD_OTG_NOVBUSSENS 1 -#define STM32_LSECLK 32768U -#define STM32_HSECLK 25000000U +#ifndef STM32_LSECLK +# define STM32_LSECLK 32768U +#endif // STM32_LSECLK + +#ifndef STM32_HSECLK +# define STM32_HSECLK 25000000U +#endif // STM32_HSECLK #ifndef EARLY_INIT_PERFORM_BOOTLOADER_JUMP # define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE |