AnsweredAssumed Answered

LPC55S69: how to check if RTC is initialized ?

Question asked by Eugene Hiihtaja on Nov 13, 2019
Latest reply on Apr 20, 2020 by chad pham

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:


RTC_GetDatetime(RTC, &date);

if ((date.year < 2019)


 // Not initialized ?