Fix initialisation sequence of RTC

Initialisation of RTC was wrong for boot from sysreset, and resulted
in RTOS with nothing to do in its main thread. This fixes the bug.
pull/15184/head
Michael Hasling 2021-11-29 16:45:22 +00:00
parent c41145c6d8
commit dc30b7afe9
1 changed files with 1 additions and 1 deletions

View File

@ -127,10 +127,10 @@ time_t rtc_read(void)
//******************************************************************************
void lp_ticker_init(void)
{
init_rtc();
RTC_DisableINT(MXC_F_RTC_INTEN_COMP0);
NVIC_SetVector(RTC0_IRQn, (uint32_t)lp_ticker_irq_handler);
NVIC_EnableIRQ(RTC0_IRQn);
init_rtc();
}
//******************************************************************************