ButterflyMP3

timer0.h File Reference

AVR Butterfly Timer0 routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TIMER0_NUM_CALLBACKS   4
#define TIMER0_NUM_COUNTDOWNTIMERS   4
#define TIMER0_TICKSPERSECOND   ((8000000/256) / 31 )

Typedefs

typedef void(* TIMER_CALLBACK_FUNC )(void)

Functions

void Timer0_Init (void)
BOOL Timer0_RegisterCallbackFunction (TIMER_CALLBACK_FUNC pFunc)
BOOL Timer0_RemoveCallbackFunction (TIMER_CALLBACK_FUNC pFunc)
char Timer0_AllocateCountdownTimer (void)
char Timer0_GetCountdownTimer (char timer)
void Timer0_SetCountdownTimer (char timer, char value)
void Timer0_ReleaseCountdownTimer (char timer)

Detailed Description

AVR Butterfly Timer0 routines.

Author:
ATMEL Norway
  Target(s)...: ATmega169
  Compiler....: AVR-GCC 3.3.1; avr-libc 1.0
  Revisions...: 1.0
  YYYYMMDD - VER. - COMMENT                                       - SIGN.
  20030116 - 1.0  - Created                                       - KS
  20031009          port to avr-gcc/avr-libc                      - M.Thomas
  
Id:
timer0.h,v 1.3 2009/01/11 23:39:59 brokentoaster Exp

Definition in file timer0.h.


Define Documentation

#define TIMER0_NUM_CALLBACKS   4

Definition at line 26 of file timer0.h.

Referenced by Timer0_Init().

#define TIMER0_NUM_COUNTDOWNTIMERS   4

Definition at line 27 of file timer0.h.

Referenced by Timer0_Init().

#define TIMER0_TICKSPERSECOND   ((8000000/256) / 31 )

Definition at line 28 of file timer0.h.

Referenced by mainTimer().


Typedef Documentation

typedef void(* TIMER_CALLBACK_FUNC)(void)

Definition at line 24 of file timer0.h.


Function Documentation

char Timer0_AllocateCountdownTimer ( void  )
char Timer0_GetCountdownTimer ( char  timer)
void Timer0_Init ( void  )

Definition at line 49 of file timer0.c.

References CallbackFunc, CountDownTimers, NULL, TIMER0_NUM_CALLBACKS, and TIMER0_NUM_COUNTDOWNTIMERS.

Referenced by init_HW().

BOOL Timer0_RegisterCallbackFunction ( TIMER_CALLBACK_FUNC  pFunc)

Referenced by init_HW(), and LCD_Initialize().

void Timer0_ReleaseCountdownTimer ( char  timer)
BOOL Timer0_RemoveCallbackFunction ( TIMER_CALLBACK_FUNC  pFunc)
void Timer0_SetCountdownTimer ( char  timer,
char  value 
)
 All Files Functions Variables Typedefs Enumerations Enumerator Defines