#include <avr/io.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "global.h"
#include "timer128.h"
Go to the source code of this file.
Typedefs | |
| typedef void(* | voidFuncPtr )(void) |
Functions | |
| short | __attribute__ ((progmem)) TimerPrescaleFactor[]= |
| void | delay (unsigned short us) |
| void | timerInit (void) |
| initializes timing system (all timers) | |
| void | timer0Init () |
| initialize timer0 | |
| void | timer1Init (void) |
| initialize timer1 | |
| void | timer2Init (void) |
| void | timer3Init (void) |
| void | timer0SetPrescaler (u08 prescale) |
| set timer0 prescaler | |
| void | timer1SetPrescaler (u08 prescale) |
| set timer1 prescaler | |
| void | timer2SetPrescaler (u08 prescale) |
| void | timer3SetPrescaler (u08 prescale) |
| void | timerAttach (u08 interruptNum, void(*userFunc)(void)) |
| Attach a user function to a timer interrupt. | |
| void | timerDetach (u08 interruptNum) |
| Detach a user function from a timer interrupt. | |
| void | timerPause (unsigned short pause_ms) |
| timerPause pauses for the number of milliseconds specified in | |
| void | timer0ClearOverflowCount (void) |
| clear timer0's overflow counter | |
| long | timer0GetOverflowCount (void) |
| read timer0's overflow counter | |
| void | timer2ClearOverflowCount (void) |
| long | timer2GetOverflowCount (void) |
| void | timer1PWMInit (u08 bitRes) |
| initialize and set timer1 mode to PWM | |
| void | timer1PWMOff (void) |
| turn off all timer1 PWM output and set timer mode to normal | |
| void | timer1PWMAOn (void) |
| turn on timer1 Channel A (OC1A) PWM output | |
| void | timer1PWMBOn (void) |
| turn on timer1 Channel B (OC1B) PWM output | |
| void | timer1PWMCOn (void) |
| turn on timer1 Channel C (OC1C) PWM output | |
| void | timer1PWMAOff (void) |
| turn off timer1 Channel A (OC1A) PWM output | |
| void | timer1PWMBOff (void) |
| turn off timer1 Channel B (OC1B) PWM output | |
| void | timer1PWMCOff (void) |
| turn off timer1 Channel C (OC1C) PWM output | |
| void | timer1PWMASet (u16 pwmDuty) |
| set duty of timer1 Channel A (OC1A) PWM output | |
| void | timer1PWMBSet (u16 pwmDuty) |
| set duty of timer1 Channel B (OC1B) PWM output | |
| void | timer1PWMCSet (u16 pwmDuty) |
| set duty of timer1 Channel C (OC1C) PWM output | |
| void | timer3PWMInit (u08 bitRes) |
| initialize and set timer3 mode to PWM | |
| void | timer3PWMOff (void) |
| turn off all timer3 PWM output and set timer mode to normal | |
| void | timer3PWMAOn (void) |
| turn on timer3 Channel A (OC3A) PWM output | |
| void | timer3PWMBOn (void) |
| turn on timer3 Channel B (OC3B) PWM output | |
| void | timer3PWMCOn (void) |
| turn on timer3 Channel C (OC3C) PWM output | |
| void | timer3PWMAOff (void) |
| turn off timer3 Channel A (OC3A) PWM output | |
| void | timer3PWMBOff (void) |
| turn off timer3 Channel B (OC3B) PWM output | |
| void | timer3PWMCOff (void) |
| turn off timer3 Channel C (OC3C) PWM output | |
| void | timer3PWMASet (u16 pwmDuty) |
| set duty of timer3 Channel A (OC3A) PWM output | |
| void | timer3PWMBSet (u16 pwmDuty) |
| set duty of timer3 Channel B (OC3B) PWM output | |
| void | timer3PWMCSet (u16 pwmDuty) |
| set duty of timer3 Channel C (OC3C) PWM output | |
| TIMER_INTERRUPT_HANDLER (SIG_OVERFLOW0) | |
| Interrupt handler for tcnt0 overflow interrupt. | |
Variables | |
| volatile unsigned long | TimerPauseReg |
| volatile unsigned long | Timer0Reg0 |
| volatile unsigned long | Timer0Reg1 |
| volatile unsigned long | Timer2Reg0 |
| volatile unsigned long | Timer2Reg1 |
Definition in file timer128.c.
1.3-rc2