mirror of https://github.com/ARMmbed/mbed-os.git
Tidy code formatting
parent
e1cd282232
commit
5a4ba0e0a0
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue