Simple Calendar module
This is a simple calendar module capable of calculcating day of week and week among simple time and date functions. The module is PIC independent, it should be compile to all PICs that are at least in family 18F. Only a 1s interrupt is needed for incrementing the time and date.
About this Code Example
User have to register function isr_rtc_1s to a 1s cycle time interrupt.
Function init_rtc should be called to initialize module. The user can here set a default time. It is possible to change timeDate later with function rtcSetTimeDate.
Function do_rtc should be called from main context at least with a 1s cycle time.
TimeDate can be read out with rtcGetTimeDate.
Daylight saving for Europe added.
- Nov 29, 2012
Daylight saving for Europe.
- Oct 25, 2011