📄 main.h
字号:
#ifndef __MAIN_H__
#define __MAIN_H__
#include <stdio.h>
#include <intrins.h>
// Initial define
#include "AT89S51.h"
#include "datatype.h"
// Firmware
#include "Timer.h"
#include "InKey4x4.h"
#include "DispLcd.h"
// Software
#include "Calculator.h"
#include "Clock.h"
#include "Freq.h"
///////////////////////////////////////////////////////////////////////////
//hardware declaration
#define LED_PORT1 P1
#define LED_PORT2 P2
#define LED_PORT3 P3
///////////////////////////////////////////////////////////////////////////
//Marco
#define RR(x) _cror_(x,1);
///////////////////////////////////////////////////////////////////////////
//constant declaration
#define TIMEOUT_SEC 10;
//System Mode
enum{
MODE_FIRST=1,
MODE_CLK,
MODE_CLK_ADJ,
MODE_CAL
};
///////////////////////////////////////////////////////////////////////////
//main.c declaration
extern BYTE bdata g_wKeyCounter;
extern USTCULTDATA data g_ustValData;
extern BYTE data g_bSYS_MODE;
#endif // __MAIN_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -