pin2410.h

来自「很好用的linux下的JTAG烧写工具」· C头文件 代码 · 共 61 行

H
61
字号
#ifndef __PIN2410_H__
#define __PIN2410_H__

#include "def.h"
/*****************************************************************************/
/* Boundary Scan Cell number of S3C2410                                      */
/*****************************************************************************/

#define S2410_MAX_CELL_INDEX	426	//0~426

#define DATA_CON	(99)
#define DATA0_IN	(100) 
#define DATA0_OUT	(98)
#define DATA1_IN	(97)  
#define DATA1_OUT	(96)
#define DATA2_IN	(95)  
#define DATA2_OUT	(94)
#define DATA3_IN	(93)  
#define DATA3_OUT	(92)
#define DATA4_IN	(91)  
#define DATA4_OUT	(90)
#define DATA5_IN	(89)  
#define DATA5_OUT	(88)
#define DATA6_IN	(87)  
#define DATA6_OUT	(86)
#define DATA7_IN	(85) 
#define DATA7_OUT	(84)  

#define CLE		(168)
#define ALE		(169)

#define nFCE		(172)
#define nFWE		(170)
#define nFRE		(171)

#define nOE		(147)
#define NCON0		(229)
#define nWAIT		(167)    



/*****************************************************************************/
/* Exported Functions                                                        */
/*****************************************************************************/
void S2410_InitCell(void);
void S2410_SetPin(int index, char value);
char S2410_GetPin(int index);
void S2410_SetData(U8);
U8 S2410_GetData(void);

extern char outCellValue[S2410_MAX_CELL_INDEX+2];
extern char inCellValue[S2410_MAX_CELL_INDEX+2];
extern int  dataOutCellIndex[8];
extern int  dataInCellIndex[8];

// MACRO for speed up
#define S2410_SetPin(index,value)   outCellValue[index] = value
#define S2410_GetPin(index)	    inCellValue[index]


#endif  //__PIN2410_H__

⌨️ 快捷键说明

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