boards/stm32f3: fix clock configuration for HSI

This commit is contained in:
Alexandre Abadie 2020-09-07 09:26:26 +02:00
parent 61f37ce395
commit 1c95ff86bf
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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