📄 global.h
字号:
/*
****************************************************************************
Copyright 2001 Philips Semiconductors Limited,
35/F,Panglin Plaza, No. 2002,Jia BIn Road,Luo Hu District,Shenzhen 518001, PRC.
All rights are reserved. Reproduction in whole or in part is prohiBIT data ed
without the prior written consent of the copyright owner.
COMPANY CONFIDENTIAL
***************************************************************************
Filename : global.h
Rev Date Author
____________________________________________________________________________
1.0 2001/08/21 Tenon Mao
Global definitions.
*/
/**********************
* Compiling controll *
**********************/
#ifndef _global_h
#define _global_h
/**********************
* SYSTEM OPTION *
**********************/
/**********************
* INCLUDE FILES *
**********************/
/* Standard include files */
#include "stc52.h"
#include <intrins.h>
//#include <reg52.h>
/**********************
* TYPEDEFS define *
**********************/
#define BYTE unsigned char
#define BIT bit
#define INT8 signed char
#define INT16 signed int
#define UINT16 unsigned int
#define INT32 signed long
#define UINT32 unsigned long
#define uchar unsigned char
#define uint unsigned int
//sfr WDT_CONTR=0xe1;//看门狗
#define Bool bit
#define DATA data
#define Byte unsigned char
#define SUCCESS 0
#define FAIL 1
#define High 1
#define Low 0
#define NAK 1
#define ACK 0
#define True 1
#define False 0
#define Set 1
#define Clear 0
#define No 1
#define Have 0
#define Up 1
#define Down 0
/**********************
* GLOBAL MACROS *
**********************/
///x is a byte!!!
//#define BCD2HEX(x) (((x)>>4)*10+((x)%16))
//#define HEX2BCD(x) ((((x)/10)<<4)+((x)%10))
//#define LOBYTE(w) ((BYTE)(w))
//#define HIBYTE(w) ((BYTE)(((UINT16)(w) >> 8) & 0xFF))
/*****************************
* GLOBAL MCU PIN defintion *
*****************************/
//sfr WDT_CONTR=0xe1;//看门狗
#define WatchDog WDT_CONTR=0x34 //系统时钟11.0592时设置了预分频32,大约1.17s前要喂狗了
/**********************
* LOCAL TYPEDEFS *
**********************/
#define XTAL32K
//#define InitVCO 98000 // 98.00 MHz for reset Freq
#define STEP 100 //setp size =100KHz.
#define AST_STEP 100 //200
#ifdef XTAL32K
#define REFERENCE_FREQ 32.768
#else
#define REFERENCE_FREQ 50.000
#endif
#define Max_FreqH 108000 //108Mhz//高波段的上下限
#define Min_FreqH 87000 //87.5Mhz
#define Max_FreqL 91000 //91Mhz//低波段的上下限
#define Min_FreqL 76000 //76Mhz
#define Ini_FreqL 76000 //初始频率(76到90MHZ的
#define Ini_FreqH 87000 //初始频率(87.5到108MHZ的
/**************************************************************
* GLOBAL VARIABLES *
* ALL THE GLOBAL VARIABLES SHOULD PUTE HERE AND DEFINE IN THE *
* XX.C OF EXPOTERD AREA!!!!!!!!!!!!!!!!!!!!!! *
* *
**************************************************************/
extern unsigned long gdwSearchedVCO; // vco frequency after search command
extern unsigned long gdwPresetVCO; // target vco frequency for preSet
extern unsigned long gdwWorkingVCO; // display vco frequency
extern BYTE idata gbNewKey ; // new key code
extern UINT16 idata gwSysTimer0; // system timer 0
extern UINT16 idata _gwDisplayDelay; // display delay timer
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -