Tidy code formatting

pull/1226/head
Paul Staron 2015-07-08 15:22:46 +01:00
parent e1cd282232
commit 5a4ba0e0a0
1 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@ static void init(void) {
// Enable external crystal source if clock source is 32KHz
if (extosc_frequency()==32768) {
SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(OSC32KCLK);
}
else{
// If main clock is NOT 32KHz crystal, use external 32KHz clock source defined in PeripheralPins.c
SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(PinMap_RTC[0].peripheral);
pinmap_pinout(PinMap_RTC[0].pin, PinMap_RTC); //Map RTC clk input (if not NC)
}
}
else{
// If main clock is NOT 32KHz crystal, use external 32KHz clock source defined in PeripheralPins.c
SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(PinMap_RTC[0].peripheral);
pinmap_pinout(PinMap_RTC[0].pin, PinMap_RTC); //Map RTC clk input (if not NC)
}
}
void rtc_init(void) {