cancel
Showing results for 
Search instead for 
Did you mean: 

Leap year setting in RTC

hazin
Associate III

Is there any inbuilt leap year setting in the onboard rtc of STM32L152RC. If not how to manually configure it. Source code also. 

Thank You

1 REPLY 1
Peter BENSCH
ST Employee

Well, the RM0038 writes about this in section 20.1:

Compensations for 28-, 29- (leap year), 30-, and 31-day months are performed automatically. Daylight saving time compensation can also be performed.

Does it answer your question?

Regards
/Peter

BTW: please note that the STM32L1xx are already on NRND (Not Recommended for New Design) and should be replaced by other families of STM32 for longer term projects.

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.