ButterflyMP3
|
00001 00023 // Typedef for Timer callback function 00024 typedef void (*TIMER_CALLBACK_FUNC) (void); 00025 00026 #define TIMER0_NUM_CALLBACKS 4 00027 #define TIMER0_NUM_COUNTDOWNTIMERS 4 00028 #define TIMER0_TICKSPERSECOND ((8000000/256) / 31 ) 00029 void Timer0_Init(void); 00030 00031 BOOL Timer0_RegisterCallbackFunction(TIMER_CALLBACK_FUNC pFunc); 00032 BOOL Timer0_RemoveCallbackFunction(TIMER_CALLBACK_FUNC pFunc); 00033 00034 00035 //mt 00036 // char Timer0_AllocateCountdownTimer(); 00037 char Timer0_AllocateCountdownTimer(void); 00038 char Timer0_GetCountdownTimer(char timer); 00039 void Timer0_SetCountdownTimer(char timer, char value); 00040 void Timer0_ReleaseCountdownTimer(char timer);