gpio.h

来自「9200上用于测试GPIO口的程序,对初学者较有实用坐标............」· C头文件 代码 · 共 40 行

H
40
字号
#ifndef GPIO_H#define GPIO_H/* Debug constants */#define DEBUG_FRAME		0x0001#define DEBUG_STATUS 	0x0002#define DEBUG_FIELD		0x0004#define DEBUG_ERR		0x0008#define DEBUG_TIME		0x0010#define DEBUG_INIT		0x0020/* Debug settings */#define DEBUG#define DEBUG_ALL		(DEBUG_STATUS | DEBUG_ERR)#define DEBUG_LEVEL		DEBUG_ALL/* Memory mapping definitions */#define MAP_SIZE 4096UL#define MAP_MASK (MAP_SIZE - 1)/* AT91RM9200 PIO definitions */#define AT91_SYS	0xFFFFF000#define AT91_PIOA	0xFFFFF400#define AT91_PIOB	0xFFFFF600#define AT91_PIOC	0xFFFFF800#define AT91_PIOD	0xFFFFFA00#define PMC_PCER	0x0010#define PIO_PER		0x0000#define PIO_PDR		0x0004#define PIO_OER		0x0010#define PIO_ODR		0x0014#define PIO_SODR	0x0030#define PIO_CODR	0x0034#define PIO_PDSR	0x003c#endif

⌨️ 快捷键说明

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