BE_VOILIER/Services/Source/RTC.c
2025-12-16 17:52:19 +01:00

12 lines
186 B
C

#include "RTC.h"
initRTC(){
RTC -> PRLL = 0x7FFF; // Obtenir un période de 1 seconde
RTC -> PRLH = 0xFFFF; // Le plus grand possible
}
int getTime(){
return(RTC -> PRLH);
}