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

📄 pio.h

📁 Embest ATEB40x开发板部分测试程序
💻 H
字号:
/*********************************************************************************************
*文件:		pio.h
*公司:		深圳市英蓓特信息技术有限公司
*部门:		硬件研发部
*作者:		谢文辉	2005.04.06
*说明:		pio头文件,定义IO结构体等.
*注释:		
*********************************************************************************************/
#ifndef		PIO_H
#define		PIO_H

typedef volatile unsigned int at91_reg ;

typedef struct
{
    at91_reg        PER ;           /* PIO Enable Register */
    at91_reg        PDR ;           /* PIO Disable Register */
    at91_reg        PSR ;           /* PIO Status Register */
    at91_reg        Reserved0 ;
    at91_reg        OER ;           /* Output Enable Register */
    at91_reg        ODR ;           /* Output Disable Register */
    at91_reg        OSR ;           /* Output Status Register */
    at91_reg        Reserved1 ;
    at91_reg        IFER ;          /* Input Filter Enable Register */
    at91_reg        IFDR ;          /* Input Filter Disable Register */
    at91_reg        IFSR ;          /* Input Filter Status Register */
    at91_reg        Reserved2 ;
    at91_reg        SODR ;          /* Set Output Data Register */
    at91_reg        CODR ;          /* Clear Output Data Register */
    at91_reg        ODSR ;          /* Output Data Status Register */
    at91_reg        PDSR ;          /* Pin Data Status Register */
    at91_reg        IER ;           /* Interrupt Enable Register */
    at91_reg        IDR ;           /* Interrupt Disable Register */
    at91_reg        IMR ;           /* Interrupt Mask Register */
    at91_reg        ISR ;           /* Interrupt Status Register */
    at91_reg        MDER ;          /* Multi Driver Enable Register */
    at91_reg        MDDR ;          /* Multi Driver Disable Register */
    at91_reg        MDSR ;          /* Multi Driver Status Register */
} StructPIO ;

#define P0		 (1<<0)
#define P1		 (1<<1)
#define P2		 (1<<2)
#define P3		 (1<<3)
#define P4		 (1<<4)
#define P5		 (1<<5)
#define P6		 (1<<6)
#define P7		 (1<<7)
#define P8		 (1<<8)
#define P9		 (1<<9)
#define P10		(1<<10)
#define P11		(1<<11)
#define P12		(1<<12)
#define P13		(1<<13)
#define P14		(1<<14)
#define P15		(1<<15)
#define P16		(1<<16)
#define P17		(1<<17)
#define P18		(1<<18)
#define P19		(1<<19)
#define P20		(1<<20)
#define P21		(1<<21)
#define P22		(1<<22)
#define P23		(1<<23)
#define P24		(1<<24)
#define P25		(1<<25)
#define P26		(1<<26)
#define P27		(1<<27)
#define P28		(1<<28)
#define P29		(1<<29)
#define P30		(1<<30)
#define P31		(1<<31)

#define	PIO		((StructPIO *)0xFFFF0000)

#endif

⌨️ 快捷键说明

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