main.h

来自「利用89s51去寫結構化keil-C 4x4鍵盤掃描+LCD螢幕顯示 HW0」· C头文件 代码 · 共 54 行

H
54
字号

#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 + =
减小字号Ctrl + -
显示快捷键?