Skip to content

Commit

Permalink
Merge pull request #15184 from ihf-uk-team/master
Browse files Browse the repository at this point in the history
Fix initialisation sequence of RTC
  • Loading branch information
0xc0170 authored Dec 7, 2021
2 parents a82ee22 + dc30b7a commit b129f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion targets/TARGET_Maxim/TARGET_MAX32630/rtc_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

//******************************************************************************
Expand Down

0 comments on commit b129f6e

Please sign in to comment.