Skip to content

Commit

Permalink
Allow for overriding clocks on F4xx. (qmk#12886)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored May 13, 2021
1 parent 9633f9a commit a2412e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions platforms/chibios/BLACKPILL_STM32_F401/configs/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions platforms/chibios/BLACKPILL_STM32_F411/configs/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2412e3

Please sign in to comment.