Merge pull request #15184 from ihf-uk-team/master

Fix initialisation sequence of RTC
pull/15192/head
Martin Kojtal 2021-12-07 13:57:32 +00:00 committed by GitHub
commit b129f6ebad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}
//******************************************************************************