mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 05:53:49 +01:00
Merge pull request #8545 from kYc0o/nucleo-l152_lse
boards/nucleo-l152: configure LSI by default
This commit is contained in:
commit
18f9024fd8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user