mirror of https://github.com/ARMmbed/mbed-os.git
rtc_api: Bugfix clock selection.
parent
e8b022c310
commit
ec865eac30
|
@ -42,7 +42,7 @@ void pin_function(PinName pin, int function)
|
|||
|
||||
void pin_mode(PinName pin, PinMode mode)
|
||||
{
|
||||
MBED_ASSERT(pin != NC);
|
||||
MBED_ASSERT((0xFFFFFF00 |pin) != NC);
|
||||
|
||||
/* Enable GPIO clock if not already done */
|
||||
if (!gpio_clock_inited) {
|
||||
|
|
|
@ -96,11 +96,6 @@ void rtc_init_real(uint32_t flags)
|
|||
useflags |= flags;
|
||||
|
||||
if (!rtc_inited) {
|
||||
/* Start LFXO and wait until it is stable */
|
||||
CMU_OscillatorEnable(cmuOsc_LFXO, true, true);
|
||||
|
||||
/* Route the LFXO clock to the RTC */
|
||||
CMU_ClockSelectSet(cmuClock_LFA, LOW_ENERGY_CLOCK_SOURCE);
|
||||
CMU_ClockEnable(cmuClock_RTC, true);
|
||||
|
||||
/* Enable clock to the interface of the low energy modules */
|
||||
|
|
Loading…
Reference in New Issue