setup the timers and handle the timer ISR's More...
#include "led.h"#include "timer.h"#include "adc.h"#include "timeKeeping.h"#include "pinInterrupts.h"Go to the source code of this file.
Functions | |
| void | setupTimer0 () |
| void | sleepTimer0 () |
| void | wakeUpTimer0 () |
| __interrupt void | ISR_TA0_CCR0 (void) |
| Interrupt vector of timer0 CCR0. | |
| __interrupt void | ISR_TA0 (void) |
| Interrupt vector of timer0 CCR1 till CCR2 and TA0IFG. | |
| void | setupTimer1 () |
| __interrupt void | ISR_TA1_CCR0 (void) |
| Interrupt vector of timer1 CCR0. | |
| __interrupt void | ISR_TA1 (void) |
| Interrupt vector of timer1 CCR1 till CCR2 and TA0IFG. | |
setup the timers and handle the timer ISR's
Definition in file timer.c.
| __interrupt void ISR_TA0 | ( | void | ) |
Interrupt vector of timer0 CCR1 till CCR2 and TA0IFG.
Definition at line 60 of file timer.c.
References calculateTimeDifference(), pwmOnCycles, pwmPeriod_cycles, startAdcConv(), stepperAdvance(), stepperTimeOffsetFast, stepperTimeOffsetSlow, timerCompareStepperSpeedToggle, toggleCalculateTimeDifference, and toggleFwdInterrupt.
| __interrupt void ISR_TA0_CCR0 | ( | void | ) |
| __interrupt void ISR_TA1 | ( | void | ) |
Interrupt vector of timer1 CCR1 till CCR2 and TA0IFG.
Definition at line 154 of file timer.c.
References toggleTimer1Direction.
| __interrupt void ISR_TA1_CCR0 | ( | void | ) |
Interrupt vector of timer1 CCR0.
Definition at line 140 of file timer.c.
References timerCountsInDay, timeSinceLastCompleteDcfMessage, and toggleTimer1Direction.
| 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.
References pwmPeriod_cycles, and stepperTimeOffsetSlow.
Referenced by main().
| 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 | ( | ) |