Timer routines. More...
Functions | |
| unsigned long | getTime (void) |
| Get the time since power up. | |
| unsigned long | getCycles (void) |
| Get the time since power up. | |
| void | initTimer (void) |
| Initialize the timer. | |
| void | timeISR (void) |
Timer routines.
Time since power up in microseconds.
| unsigned long getCycles | ( | void | ) |
Get the time since power up.
This function returns the number of cycles since initTimer().
| unsigned long getTime | ( | void | ) |
Get the time since power up.
This function returns the number of microseconds since initTimer().
| void initTimer | ( | void | ) |
Initialize the timer.
This routine initializes the timer functionality. It configures timer0 and dispatches the timer interrupt service routine using the Dwengo interrupt library.
1.7.3