?? 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 + -