📄 pin2410.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -