📄 timer.h
字号:
//=============================================================================
// File Name : Timer.h
// Function : S3C24a0Timer Test Head File
// History
// 0.0 : Programming start (1,2004) -> SOP
//=============================================================================
#ifndef __TIMER_H__
#define __TIMER_H__
#ifdef __cplusplus
extern "C" {
#endif
void Ch9_PwmTimer(void);
void Test_Timer_User_setting(void);
void Test_AutoReload(void);
void Test_Timer(void);
void Test_TimerInt(void);
void Test_TimerDma(void);
void timer_start(void);
void timer_stop(void);
void TimerSubMessage(void);
void DMA_M2M_timer(int ch,int srcAddr,int dstAddr,int tc,int dsz,int burst);
void Timer_Start(int divider); //0:16us,1:32us 2:64us 3:128us
int Timer_Stop(void);
void __irq Timer0Done(void);
void __irq Timer1Done(void);
void __irq Timer2Done(void);
void __irq Timer3Done(void);
void __irq Timer4Done(void);
static void __irq Dma0Done(void);
static void __irq Dma1Done(void);
static void __irq Dma2Done(void);
static void __irq Dma3Done(void);
//void M2M_Timer_Test(int ch, int s_addr, int d_addr, int burst, int dsz, int tc);
#define ONESEC0 (62500) //16us resolution, max 1.04 sec
#define ONESEC1 (31250) //32us resolution, max 2.09 sec
#define ONESEC2 (15625) //64us resolution, max 4.19 sec
#define ONESEC3 (7812) //128us resolution, max 8.38 sec
#define ONESEC4 (PCLK/128/(0xff+1)) //@60Mhz, 128*4us resolution, max 32.53 sec
#ifdef __cplusplus
}
#endif
#endif //__TIMER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -