1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/efm32: satisfy vera++

This commit is contained in:
Juergen Fitschen 2022-10-18 17:16:52 +02:00 committed by Jue
parent 68625e5aa9
commit dc8fe69789

View File

@ -107,13 +107,14 @@ static void clk_init(void)
#endif
/* initialize LFXO with board-specific parameters before switching */
if (CLOCK_LFA == cmuSelect_LFXO || CLOCK_LFB == cmuSelect_LFXO ||
#if defined(_SILICON_LABS_32B_SERIES_1)
CLOCK_LFE == cmuSelect_LFXO)
if (CLOCK_LFA == cmuSelect_LFXO ||
CLOCK_LFB == cmuSelect_LFXO ||
CLOCK_LFE == cmuSelect_LFXO) {
#else
false)
if (CLOCK_LFA == cmuSelect_LFXO ||
CLOCK_LFB == cmuSelect_LFXO) {
#endif
{
CMU_LFXOInit_TypeDef init_lfxo = CMU_LFXOINIT;
CMU_LFXOInit(&init_lfxo);
@ -131,13 +132,14 @@ static void clk_init(void)
#endif
/* disable the LFRCO if external crystal is used */
if (CLOCK_LFA == cmuSelect_LFXO && CLOCK_LFB == cmuSelect_LFXO &&
#if defined(_SILICON_LABS_32B_SERIES_1)
CLOCK_LFE == cmuSelect_LFXO)
if (CLOCK_LFA == cmuSelect_LFXO &&
CLOCK_LFB == cmuSelect_LFXO &&
CLOCK_LFE == cmuSelect_LFXO) {
#else
true)
if (CLOCK_LFA == cmuSelect_LFXO &&
CLOCK_LFB == cmuSelect_LFXO) {
#endif
{
CMU_OscillatorEnable(cmuOsc_LFRCO, false, false);
}
}