www.pudn.com > M26(2M).rar > Includes.h, change:2016-01-20,size:1373b


/*************************************************************************************************** 
	* Copyright (c) 2015 
	* All rights reserved. 
	* 文件名称: Includes.h 
	* 摘 要:     
	* 当前版本: V1.0, 易建, 2015-10-10  
	* 更改记录: 
***************************************************************************************************/ 
 
#ifndef _INCLUDES_H_ 
#define _INCLUDES_H_ 
 
#ifdef   	GLOBALVAR 
	#define Global_Var 
#else 
	#define Global_Var extern  
#endif 
 
#include "msp430x43x.h" 
#include "MyType.h" 
#include "SerialSvr.h"  
#include "QuectelM26.h" 
 
// SMCLK 频率 
//#define  CLK_8MHZ  
#define  CLK_1MHZ  
 
#define     AN_POWER_ON             P2DIR |= BIT5 
#define     AN_POWER_OFF            P2DIR &= ~BIT5; 
 
/****************************************** 按键定义 **********************************************/ 
#define     NO_KEY      		        0						//无按键 
#define     RIGHT_KEY			        3						//右按键 
#define     OK_KEY				        2						//确认键 
#define     LEFT_KEY    		        1						//左按键 
 
 
#define     WAIT_DEC                    0 
#define     START_DEC                   1 
#define     STOP_DEC                    2 
 
 
extern u8   KeyCode;									        //按键值 
extern u8   KeyPressed;									        //按键被按下标识 
 
extern void UCA0_SendByte(unsigned char c); 
extern void Delay(u32 clk); 
 
#endif