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

📄 gpio.h

📁 VxWorks BSP for S3C2510A
💻 H
字号:
/* External Interrupt test */
/*
#define S3C2510_IOPMOD1                 REG_32(0x00030000)  / I/O Port Mode Select Lower Register /
#define S3C2510_IOPMOD2                 REG_32(0x00030004)  / I/O Port Mode Select Upper Register /
#define S3C2510_IOPFUNC1                REG_32(0x00030008)  / I/O Port Function Select Lower Register /
#define S3C2510_IOPFUNC2                REG_32(0x0003000C)  / I/O Port Function Select Upper Register /
#define S3C2510_IOPDMA                  REG_32(0x00030010)  / I/O Port Special Function for DMA /
#define S3C2510_IOPINT                  REG_32(0x00030014)  / I/O Port Special Function for External Interrupt /
#define S3C2510_IOPINTPEND              REG_32(0x00030018)  / External Interrupt Clear Register /
#define S3C2510_IOPDATA1                REG_32(0x0003001C)  / I/O Port Data Register /
#define S3C2510_IOPDATA2                REG_32(0x00030020)  / I/O Port Data Register /
#define S3C2510_IOPDRV1                 REG_32(0x00030024)  / I/O Port Drive Control Register /
#define S3C2510_IOPDRV2                 REG_32(0x00030028)  / I/O Port Drive Control Register /
*/
#ifndef INCgpioh
#define INCgpioh


#define S3C2510_ExtInt_Active_Low	0x0
#define S3C2510_ExtInt_Active_High	0x8
#define S3C2510_ExtInt_Filter_On	0x4
#define S3C2510_ExtInt_Filter_Off	0x0
#define S3C2510_ExtInt_Level		0x0
#define S3C2510_ExtInt_Rising		0x1
#define S3C2510_ExtInt_Falling		0x2

#define S3C2510_ExtInt_Clr_0		0x1
#define S3C2510_ExtInt_Clr_1		0x2
#define S3C2510_ExtInt_Clr_2		0x4
#define S3C2510_ExtInt_Clr_3		0x8
#define S3C2510_ExtInt_Clr_4		0x10
#define S3C2510_ExtInt_Clr_5		0x20



#if defined(__STDC__) || defined(__cplusplus)

IMPORT void   s3c2510ExtInt_Init(void);


#else  /* defined(__STDC__) || defined(__cplusplus) */

IMPORT void   s3c2510ExtInt_Init();

#endif


#endif  /* INCgpioh */

⌨️ 快捷键说明

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