rtc_api: Bugfix clock selection.

pull/1340/head
Aksel Skauge Mellbye 2015-09-23 11:56:56 +02:00
parent e8b022c310
commit ec865eac30
2 changed files with 1 additions and 6 deletions

View File

@ -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) {

View File

@ -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 */