Skip to content
Snippets Groups Projects
Commit 6a32f1dd authored by Francisco Acosta's avatar Francisco Acosta
Browse files

boards/nucleo-l152: configure LSI by default

parent 368818aa
No related branches found
No related tags found
No related merge requests found
...@@ -34,9 +34,17 @@ extern "C" { ...@@ -34,9 +34,17 @@ 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) */ * 0: no external low speed crystal available,
#define CLOCK_LSE (1) * 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 */ /* 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment