Skip to content

Commit

Permalink
Merge pull request #17725 from jeandudey/2022_03_01-stm32l1-clk
Browse files Browse the repository at this point in the history
cpu/stm32: Fix CLOCK_CORECLOCK on stm32l0/l1
  • Loading branch information
aabadie authored Mar 1, 2022
2 parents a17ff53 + d64bbdf commit c9cc74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/stm32/include/clk/l0l1/cfg_clock_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extern "C" {
* PLL_MUL: multiplier, allowed values: 3, 4, 6, 8, 12, 16, 24, 32, 48. Default is 4.
* CORECLOCK -> 32MHz MAX!
*/
#define CLOCK_CORECLOCK ((CLOCK_PLL_SRC / CONFIG_CLOCK_PLL_DIV) * CONFIG_CLOCK_PLL_MUL)
#define CLOCK_CORECLOCK ((CLOCK_PLL_SRC * CONFIG_CLOCK_PLL_MUL) / CONFIG_CLOCK_PLL_DIV)
#if CLOCK_CORECLOCK > MHZ(32)
#error "SYSCLK cannot exceed 32MHz"
#endif
Expand Down

0 comments on commit c9cc74f

Please sign in to comment.