ButterflyMP3
|
AVR Butterfly Timer0 routines. More...
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) |
AVR Butterfly Timer0 routines.
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
Definition in file timer0.h.
#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 void(* TIMER_CALLBACK_FUNC)(void) |
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 | ||
) |