diff --git a/boards/nucleo-l152/include/periph_conf.h b/boards/nucleo-l152/include/periph_conf.h index 2e6b965946335cef104aa36a018719324877820f..49c12913f7f0abd085ae833587820047ccad82cb 100644 --- a/boards/nucleo-l152/include/periph_conf.h +++ b/boards/nucleo-l152/include/periph_conf.h @@ -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