timer.h

来自「mega128平台下」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef	_TIMER_H
#define	_TIMER_H
#include<iom128v.h>


 extern void T0_timeout();
 extern void T1_timeout();
 extern void T2_timeout();
 extern void T3_timeout();

//Timer接口
//Timer0
void start_T0(char type, unsigned int count);
void stop_T0(void);
//Timer1
void start_T1(char type, unsigned int count);
void stop_T1(void);
//Timer2
void start_T2(char type, unsigned int count);
void stop_T2(void);
//Timer3
void start_T3(char type, unsigned int count);
void stop_T3(void);
//init
void T0_init();
void T1_init();
void T2_init();
void T3_init();
#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?