board/nucleo-l152: enable LSE per default

This commit is contained in:
Hauke Petersen 2017-08-23 15:19:38 +02:00
parent ec5569a0c4
commit 3897d003f0

View File

@ -32,6 +32,9 @@ extern "C" {
**/ **/
#define CLOCK_HSI (16000000U) /* frequency of internal oscillator */ #define CLOCK_HSI (16000000U) /* frequency of internal oscillator */
#define CLOCK_CORECLOCK (32000000U) /* targeted core clock frequency */ #define CLOCK_CORECLOCK (32000000U) /* targeted core clock frequency */
/* 0: no external low speed crystal available,
* 1: external crystal available (always 32.768kHz) */
#define CLOCK_LSE (1)
/* configuration of PLL prescaler and multiply values */ /* configuration of PLL prescaler and multiply values */
/* CORECLOCK := HSI / CLOCK_PLL_DIV * CLOCK_PLL_MUL */ /* CORECLOCK := HSI / CLOCK_PLL_DIV * CLOCK_PLL_MUL */
#define CLOCK_PLL_DIV RCC_CFGR_PLLDIV2 #define CLOCK_PLL_DIV RCC_CFGR_PLLDIV2