Go to the source code of this file.
Macros | |
| #define | clockFreq 32768 |
| #define | capacityTimer 65536 |
| #define | timerDiv 1 |
| #define | timerLength_ms (capacityTimer / timerLength_cycles * 1000) |
| #define | pwmPeriod_cycles 32 |
Functions | |
| void | setupTimer0 () |
| void | setupTimer1 () |
| void | wakeUpTimer0 () |
| void | sleepTimer0 () |
| #define capacityTimer 65536 |
Definition at line 14 of file timer.h.
Referenced by calculateBitTransmitTime(), and setupTimer1().
| #define pwmPeriod_cycles 32 |
Definition at line 17 of file timer.h.
Referenced by ISR_TA0(), and setupTimer0().
| #define timerLength_ms (capacityTimer / timerLength_cycles * 1000) |
| void setupTimer0 | ( | ) |
Setup of timer0, uses the the ACLK (Auxiliary clock), counts up continuous. Capture control registers
Definition at line 26 of file timer.c.
| void setupTimer1 | ( | ) |
Setup of timer1, uses the the ACLK (Auxiliary clock), counts up/down. Capture control registers
Definition at line 114 of file timer.c.
References capacityTimer, timeSinceLastCompleteDcfMessage, and toggleTimer1Direction.
Referenced by main().
| void sleepTimer0 | ( | ) |