⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 io_pb.h

📁 2410下面通过MOTO手台录音程序;自己用的
💻 H
字号:

/*******************************************************************
	File Name:	 	NmmCom.h
	Description:	 Extern function defined in NmmCom.c and define MACRO used in
				 	NmmCom.c
	version:		1.0
	
	Modify list:	
				
	Copy Right:		
*******************************************************************/

#ifndef _IO_PB_H
#define _IO_PB_H
#include "s3c2410.h"
#include "NmmGlobal.h"

/******************************************************************
  *	Define const value														    *
  ******************************************************************/


#ifndef 	CONSOLE_BAUD_RATE
	#define 	CONSOLE_BAUD_RATE 	115200
#endif

#ifndef 	consoleFd1
	int	consoleFd1;
#endif

#ifndef 	consoleFd2
	int	consoleFd2;
#endif





typedef struct                                   
 {                                                  
     UB mes_source_id_0; 	/* source mesid */ 
     UB mes_source_id_1; 	/* source mesid */ 
     UB mes_source_len_0;   	/*mes body len*/ 
     UB mes_source_len_1;    	/*mes body len*/            
 }M700_MES_HEADER_HEAD; 



typedef struct                                   
{                                                  
     	UB mes_source_id_0; 	/* source mesid */ 
     	UB mes_source_id_1; 	/* source mesid */ 
     	UB mes_source_len_0;    /*mes body len*/ 
     	UB mes_source_len_1;    /*mes body len*/            
}M700_MES_HEADER_BODY; 




#define  GPB_IO_IN_SET(position)    rGPBCON &=~(0x00000003<<(position*2));
#define  GPB_IO_OUT_SET(position)   rGPBCON |=(0x00000001<<(position*2));

#define  GPB_IO_OUT_ON(position)  rGPBDAT |= (0x00000001<<position);
#define  GPB_IO_OUT_OFF(position) rGPBDAT &= ~(0x00000001<<position);

#define  GPB_IO8_OUT(para) {rGPBDAT &= 0xffffff00;rGPBDAT |= para;}

#define  GPE_IO_IN_SET(position)    rGPECON &=~(0x00000003<<(position*2));
#define  GPE_IO_OUT_SET(position)   rGPECON |=(0x00000001<<(position*2));

#define  GPE_IO_OUT_ON(position)  rGPEDAT |= (0x00000001<<position);
#define  GPE_IO_OUT_OFF(position) rGPEDAT &= ~(0x00000001<<position);


#define  GPG_IO_IN_SET(position)    rGPGCON &=~(0x00000003<<(position*2));
#define  GPG_IO_OUT_SET(position)   rGPGCON |=(0x00000001<<(position*2));

#define  GPG_IO_OUT_ON(position)  rGPGDAT |= (0x00000001<<position);
#define  GPG_IO_OUT_OFF(position) rGPGDAT &= ~(0x00000001<<position);

#endif




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -