Main Page   Compound List   File List   Compound Members   File Members  

timer.c File Reference

#include <io.h>
#include <sig-avr.h>
#include <interrupt.h>
#include <progmem.h>
#include "global.h"
#include "timer.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)
void timer0Init ()
void timer1Init (void)
void timer2Init (void)
void timer0SetPrescaler (u08 prescale)
void timer1SetPrescaler (u08 prescale)
void timer2SetPrescaler (u08 prescale)
void timerAttach (u08 interruptNum, void(*userFunc)(void))
void timerDetach (u08 interruptNum)
void timerPause (unsigned short pause_ms)
void timer0ClearOverflowCount (void)
long timer0GetOverflowCount (void)
void timer2ClearOverflowCount (void)
long timer2GetOverflowCount (void)
void timer1PWMInit (u08 bitRes)
void timer1PWMOff (void)
void timer1PWMASet (u16 pwmDuty)
void timer1PWMBSet (u16 pwmDuty)
 SIGNAL (SIG_OVERFLOW0)
void timer2SetRTCMode (void)
void timer2EnableOutputCompare (void)
void timer2SetOutCompare (u08 compare)

Variables

volatile unsigned long Timer0PauseReg
volatile unsigned long Timer0Reg0
volatile unsigned long Timer0Reg1
volatile unsigned long Timer2Reg0
volatile unsigned long Timer2Reg1
volatile voidFuncPtr TimerIntFunc [TIMER_NUM_INTERRUPTS]


Typedef Documentation

typedef void(* voidFuncPtr)(void)
 

Definition at line 41 of file timer.c.


Function Documentation

SIGNAL ( SIG_OVERFLOW0 )
 

Definition at line 260 of file timer.c.

short __attribute__ ( (progmem) )
 

Definition at line 31 of file timer.c.

void delay ( unsigned short us )
 

Definition at line 47 of file timer.c.

void timer0ClearOverflowCount ( void )
 

Definition at line 155 of file timer.c.

long timer0GetOverflowCount ( void )
 

Definition at line 162 of file timer.c.

void timer0Init ( void )
 

Definition at line 73 of file timer.c.

Referenced by timerInit().

void timer0SetPrescaler ( u08 prescale )
 

Definition at line 104 of file timer.c.

void timer1Init ( void )
 

Definition at line 84 of file timer.c.

Referenced by timerInit().

void timer1PWMASet ( u16 pwmDuty )
 

Definition at line 237 of file timer.c.

void timer1PWMBSet ( u16 pwmDuty )
 

Definition at line 248 of file timer.c.

void timer1PWMInit ( u08 bitRes )
 

Definition at line 184 of file timer.c.

void timer1PWMOff ( void )
 

Definition at line 222 of file timer.c.

Referenced by pulseT1Init().

void timer1SetPrescaler ( u08 prescale )
 

Definition at line 110 of file timer.c.

void timer2ClearOverflowCount ( void )
 

Definition at line 169 of file timer.c.

void timer2EnableOutputCompare ( void )
 

Definition at line 336 of file timer.c.

long timer2GetOverflowCount ( void )
 

Definition at line 176 of file timer.c.

void timer2Init ( void )
 

Definition at line 93 of file timer.c.

Referenced by rtcInit(), and timerInit().

void timer2SetOutCompare ( u08 compare )
 

Definition at line 341 of file timer.c.

void timer2SetPrescaler ( u08 prescale )
 

Definition at line 116 of file timer.c.

void timer2SetRTCMode ( void )
 

Definition at line 331 of file timer.c.

void timerAttach ( u08 interruptNum,
void(* userFunc)(void) )
 

Definition at line 122 of file timer.c.

void timerDetach ( u08 interruptNum )
 

Definition at line 133 of file timer.c.

void timerInit ( void )
 

Definition at line 58 of file timer.c.

void timerPause ( unsigned short pause_ms )
 

Definition at line 143 of file timer.c.


Variable Documentation

volatile unsigned long Timer0PauseReg
 

Definition at line 35 of file timer.c.

volatile unsigned long Timer0Reg0
 

Definition at line 36 of file timer.c.

volatile unsigned long Timer0Reg1
 

Definition at line 37 of file timer.c.

volatile unsigned long Timer2Reg0
 

Definition at line 38 of file timer.c.

volatile unsigned long Timer2Reg1
 

Definition at line 39 of file timer.c.

volatile voidFuncPtr TimerIntFunc [static]
 

Definition at line 42 of file timer.c.


Generated at Mon Oct 14 00:10:52 2002 for avrlib by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001