|
Open Garden
0.10.1-21
|
low lever real time clock handler. More...

Go to the source code of this file.
Functions | |
| void | rtc_setup (void) |
| void | rtc_start (void) |
| void | rtc_stop (void) |
Variables | |
| volatile unsigned long | rtc_seconds |
low lever real time clock handler.
| void rtc_setup | ( | void | ) |
setup timer/counter on 32Khz external clock.
enable interrupt on timer 2 overflow
| void rtc_start | ( | void | ) |
setup prescaler to scale to 1 sec counter and start counter.
counter prescaler 1024
counter prescaler 128
| void rtc_stop | ( | void | ) |
stop the counter.
| volatile unsigned long rtc_seconds |
Global used in interrupt. Global Wall clock.
1.8.13