1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

boards/nucleo-l152: configure LSI by default

This commit is contained in:
Francisco Acosta 2018-02-05 17:10:49 +01:00
parent 368818aa23
commit 6a32f1ddd2

View File

@ -34,9 +34,17 @@ extern "C" {
**/
#define CLOCK_HSI (16000000U) /* frequency of internal oscillator */
#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)
/*
* 0: no external low speed crystal available,
* 1: external crystal available (always 32.768kHz)
*
* LSE might not be available by default in early (C-01) Nucleo boards.
* For newer revisions, LSE crystal is present, but currently is not working.
* (issue at https://github.com/RIOT-OS/RIOT/pull/8545).
*/
#ifndef CLOCK_LSE
#define CLOCK_LSE (0)
#endif
/* configuration of PLL prescaler and multiply values */
/* CORECLOCK := HSI / CLOCK_PLL_DIV * CLOCK_PLL_MUL */
#define CLOCK_PLL_DIV RCC_CFGR_PLLDIV2