|
fremoclock
1_3A01
FREMO Clock - Software for UTG
|
Hardware dependent timer module for Atmel AVR. More...
Go to the source code of this file.
Macros | |
| #define | USE_TIMER_0 |
| #define | TIMER_INT_VECT_COMP TIMER0_COMP_vect |
Functions | |
| void | HwTimerInit (void) |
| Initialize the hardware time. More... | |
| uint32_t | HwTimerGetValue (void) |
| Get the value of globalTimer variable guarded by disable/enable interrupts. More... | |
| ISR (TIMER_INT_VECT_COMP) | |
| Interrupt service routine for timer interrupt. More... | |
Variables | |
| static uint32_t | ulGlobalTimer = 0 |
| Gets incremented every TIMER_RESOLUTION_MS milliseconds by interrupt. More... | |
Hardware dependent timer module for Atmel AVR.
Supplies a tick count.
History:
Definition in file SysHwTimer.c.
| #define TIMER_INT_VECT_COMP TIMER0_COMP_vect |
Definition at line 78 of file SysHwTimer.c.
| #define USE_TIMER_0 |
Definition at line 55 of file SysHwTimer.c.
| uint32_t HwTimerGetValue | ( | void | ) |
Get the value of globalTimer variable guarded by disable/enable interrupts.
Definition at line 210 of file SysHwTimer.c.
| void HwTimerInit | ( | void | ) |
Initialize the hardware time.
Called from main before interrupts are enabled .
Definition at line 115 of file SysHwTimer.c.
| ISR | ( | TIMER_INT_VECT_COMP | ) |
Interrupt service routine for timer interrupt.
Runs with global interrupts disabled.
Definition at line 223 of file SysHwTimer.c.

|
static |
Gets incremented every TIMER_RESOLUTION_MS milliseconds by interrupt.
Read by other parts of the program with HwTimerGetValue.
Definition at line 89 of file SysHwTimer.c.