#ifndef _GPIO_GLOBAL_INCLUDED_
#define _GPIO_GLOBAL_INCLUDED_

//macros for the general purpose io
#define _PA0		((unsigned long)0x00000001)
#define _PA1		((unsigned long)0x00000002)
#define _PA2		((unsigned long)0x00000004)
#define _PA3		((unsigned long)0x00000008)
#define _PA4		((unsigned long)0x00000010)
#define _PA5		((unsigned long)0x00000020)
#define _PA6		((unsigned long)0x00000040)
#define _PA7		((unsigned long)0x00000080)
#define _PA8		((unsigned long)0x00000100)
#define _PA9		((unsigned long)0x00000200)
#define _PA10		((unsigned long)0x00000400)
#define _PA11		((unsigned long)0x00000800)
#define _PA12		((unsigned long)0x00001000)
#define _PA13		((unsigned long)0x00002000)
#define _PA14		((unsigned long)0x00004000)
#define _PA15		((unsigned long)0x00008000)

#define _PB0		((unsigned long)0x00010001)
#define _PB1		((unsigned long)0x00010002)
#define _PB2		((unsigned long)0x00010004)
#define _PB3		((unsigned long)0x00010008)
#define _PB4		((unsigned long)0x00010010)
#define _PB5		((unsigned long)0x00010020)
#define _PB6		((unsigned long)0x00010040)
#define _PB7		((unsigned long)0x00010080)
#define _PB8		((unsigned long)0x00010100)
#define _PB9		((unsigned long)0x00010200)
#define _PB10		((unsigned long)0x00010400)
#define _PB11		((unsigned long)0x00010800)
#define _PB12		((unsigned long)0x00011000)
#define _PB13		((unsigned long)0x00012000)
#define _PB14		((unsigned long)0x00014000)


#define _PC0		((unsigned long)0x00020001)
#define _PC1		((unsigned long)0x00020002)
#define _PC2		((unsigned long)0x00020004)
#define _PC3		((unsigned long)0x00020008)
#define _PC4		((unsigned long)0x00020010)
#define _PC5		((unsigned long)0x00020020)
#define _PC6		((unsigned long)0x00020040)
#define _PC7		((unsigned long)0x00020080)
#define _PC8		((unsigned long)0x00020100)
#define _PC9		((unsigned long)0x00020200)
#define _PC10		((unsigned long)0x00020400)
#define _PC11		((unsigned long)0x00020800)
#define _PC12		((unsigned long)0x00021000)
#define _PC13		((unsigned long)0x00022000)

#define _PD0		((unsigned long)0x00030001)
#define _PD1		((unsigned long)0x00030002)
#define _PD2		((unsigned long)0x00030004)
#define _PD3		((unsigned long)0x00030008)
#define _PD4		((unsigned long)0x00030010)
#define _PD5		((unsigned long)0x00030020)
#define _PD6		((unsigned long)0x00030040)
#define _PD7		((unsigned long)0x00030080)
#define _PD8		((unsigned long)0x00030100)
#define _PD9		((unsigned long)0x00030200)
#define _PD10		((unsigned long)0x00030400)
#define _PD11		((unsigned long)0x00030800)
#define _PD12		((unsigned long)0x00031000)
#define _PD13		((unsigned long)0x00032000)
#define _PD14		((unsigned long)0x00034000)
#define _PD15		((unsigned long)0x00038000)

#define _PE0		((unsigned long)0x00040001)
#define _PE1		((unsigned long)0x00040002)
#define _PE2		((unsigned long)0x00040004)
#define _PE3		((unsigned long)0x00040008)
#define _PE4		((unsigned long)0x00040010)
#define _PE5		((unsigned long)0x00040020)
#define _PE6		((unsigned long)0x00040040)
#define _PE7		((unsigned long)0x00040080)
#define _PE8		((unsigned long)0x00040100)
#define _PE9		((unsigned long)0x00040200)
#define _PE10		((unsigned long)0x00040400)
#define _PE11		((unsigned long)0x00040800)
#define _PE12		((unsigned long)0x00041000)
#define _PE13		((unsigned long)0x00042000)
#define _PE14		((unsigned long)0x00044000)
#define _PE15		((unsigned long)0x00048000)

#define _PF0		((unsigned long)0x00050001)
#define _PF1		((unsigned long)0x00050002)
#define _PF2		((unsigned long)0x00050004)
#define _PF3		((unsigned long)0x00050008)
#define _PF4		((unsigned long)0x00050010)
#define _PF5		((unsigned long)0x00050020)
#define _PF6		((unsigned long)0x00050040)
#define _PF7		((unsigned long)0x00050080)
#define _PF8		((unsigned long)0x00050100)
#define _PF9		((unsigned long)0x00050200)
#define _PF10		((unsigned long)0x00050400)
#define _PF11		((unsigned long)0x00050800)
#define _PF12		((unsigned long)0x00051000)
#define _PF13		((unsigned long)0x00052000)
#define _PF14		((unsigned long)0x00054000)
#define _PF15		((unsigned long)0x00058000)

#define _PG0		((unsigned long)0x00060001)
#define _PG1		((unsigned long)0x00060002)
#define _PG2		((unsigned long)0x00060004)
#define _PG3		((unsigned long)0x00060008)
#define _PG4		((unsigned long)0x00060010)
#define _PG5		((unsigned long)0x00060020)
#define _PG6		((unsigned long)0x00060040)
#define _PG7		((unsigned long)0x00060080)
#define _PG8		((unsigned long)0x00060100)
#define _PG9		((unsigned long)0x00060200)
#define _PG10		((unsigned long)0x00060400)
#define _PG11		((unsigned long)0x00060800)
#define _PG12		((unsigned long)0x00061000)
#define _PG13		((unsigned long)0x00062000)
#define _PG14		((unsigned long)0x00064000)
#define _PG15		((unsigned long)0x00068000)

#define _PH0		((unsigned long)0x00070001)
#define _PH1		((unsigned long)0x00070002)
#define _PH2		((unsigned long)0x00070004)
#define _PH3		((unsigned long)0x00070008)
#define _PH4		((unsigned long)0x00070010)
#define _PH5		((unsigned long)0x00070020)
#define _PH6		((unsigned long)0x00070040)
#define _PH7		((unsigned long)0x00070080)
#define _PH8		((unsigned long)0x00070100)
#define _PH9		((unsigned long)0x00070200)
#define _PH10		((unsigned long)0x00070400)
#define _PH11		((unsigned long)0x00070800)
#define _PH12		((unsigned long)0x00071000)
#define _PH13		((unsigned long)0x00072000)

#define _PI0		((unsigned long)0x00080001)
#define _PI1		((unsigned long)0x00080002)
#define _PI2		((unsigned long)0x00080004)
#define _PI3		((unsigned long)0x00080008)
#define _PI4		((unsigned long)0x00080010)
#define _PI5		((unsigned long)0x00080020)
#define _PI6		((unsigned long)0x00080040)
#define _PI7		((unsigned long)0x00080080)
#define _PI8		((unsigned long)0x00080100)
#define _PI9		((unsigned long)0x00080200)
#define _PI10		((unsigned long)0x00080400)
#define _PI11		((unsigned long)0x00080800)
#define _PI12		((unsigned long)0x00081000)
#define _PI13		((unsigned long)0x00082000)
#define _PI14		((unsigned long)0x00084000)
#define _PI15		((unsigned long)0x00088000)

#define _PJ0		((unsigned long)0x00090001)
#define _PJ1		((unsigned long)0x00090002)
#define _PJ2		((unsigned long)0x00090004)
#define _PJ3		((unsigned long)0x00090008)
#define _PJ4		((unsigned long)0x00090010)
#define _PJ5		((unsigned long)0x00090020)
#define _PJ6		((unsigned long)0x00090040)
#define _PJ7		((unsigned long)0x00090080)
#define _PJ8		((unsigned long)0x00090100)
#define _PJ9		((unsigned long)0x00090200)
#define _PJ10		((unsigned long)0x00090400)
#define _PJ11		((unsigned long)0x00090800)
#define _PJ12		((unsigned long)0x00091000)
#define _PJ13		((unsigned long)0x00092000)

#endif

