otimer.c
来自「端点批量传输 eerom的读写 固件自动下载 USB标准请求 GPIF单字节读」· C语言 代码 · 共 24 行
C
24 行
/************************************************
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 + =
减小字号Ctrl + -
显示快捷键?