AnsweredAssumed Answered

LPC55S69: how to check if RTC is initialized ?

Question asked by Eugene Hiihtaja on Nov 13, 2019
Latest reply on Nov 18, 2019 by ZhangJennie

Hello !

 

Looks like RTC dosn't have so much status flags.

But what is proper way to check if it initialized already ?

 

Just  enable clock and check year value for example:

 

CLOCK_EnableClock(kCLOCK_Rtc);
RTC_GetDatetime(RTC, &date);

if ((date.year < 2019)

{

 // Not initialized ?

}

Outcomes