Merge pull request #14964 from aabadie/pr/boards/stm32f3_clock_hsi
boards/stm32f3: fix clock configuration for HSI
This commit is contained in:
commit
b353733d83
@ -36,14 +36,20 @@ extern "C" {
|
||||
* @name Clock settings
|
||||
* @{
|
||||
*/
|
||||
/* give the target core clock (HCLK) frequency [in Hz],
|
||||
* maximum: 72MHz */
|
||||
#define CLOCK_CORECLOCK MHZ(72)
|
||||
/* 0: no external high speed crystal available
|
||||
* else: actual crystal frequency [in Hz] */
|
||||
#ifndef CLOCK_HSE
|
||||
#define CLOCK_HSE MHZ(8)
|
||||
#endif
|
||||
|
||||
/* give the target core clock (HCLK) frequency [in Hz],
|
||||
* maximum: 72MHz when input clock is HSE, 64MHz when input clock is HSI */
|
||||
#if CLOCK_HSE
|
||||
#define CLOCK_CORECLOCK MHZ(72)
|
||||
#else
|
||||
#define CLOCK_CORECLOCK MHZ(64)
|
||||
#endif
|
||||
|
||||
/* 0: no external low speed crystal available,
|
||||
* 1: external crystal available (always 32.768kHz) */
|
||||
#ifndef CLOCK_LSE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user