📄 otimer.c
字号:
/************************************************
Name : OTimer.c
Describ : 定时器
CreateBy : 彭恩文
LastModify: 彭恩文
modified by , 11/2/2003
*************************************************/
#include "fx2.h"
#include "fx2regs.h"
#include "OTimer.h"
#include "led.h"
#define OTimer_Macro_MaxLogicTimerNum 8 /*最大逻辑定时器数量*/
#define OTimer_Macro_1msTH 0xD1 /*CLKOUT(48M)/4,24M晶振,1ms定时器中断定时值*/
#define OTimer_Macro_1msTL 0x20 /*1ms定时器中断定时值*/
#define OK 1
#define ERROR 0
#define IDLE PCON |= 1
BYTE OTimer_RD_1msCounter ; //1ms 计数
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -