The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 09 11:14:10 2017 +0000
Revision:
157:e7ca05fa8600
Parent:
92:4fc01daae5a5
Release 155 of the mbed library.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 92:4fc01daae5a5 1 #ifndef __GPIO_ADDRDEFINE__
bogdanm 92:4fc01daae5a5 2 #define __GPIO_ADDRDEFINE__
bogdanm 92:4fc01daae5a5 3
bogdanm 92:4fc01daae5a5 4 #define GPIO_BASE ((long)0xFCFE3000uL) /* GPIO */
bogdanm 92:4fc01daae5a5 5
bogdanm 92:4fc01daae5a5 6 #define PORT(n) (volatile unsigned short *)(GPIO_BASE + 0x000 + ((n)*4))
bogdanm 92:4fc01daae5a5 7 #define PSR(n) (volatile unsigned long *)(GPIO_BASE + 0x100 + ((n)*4))
bogdanm 92:4fc01daae5a5 8 #define PPR(n) (volatile unsigned short *)(GPIO_BASE + 0x200 + ((n)*4))
bogdanm 92:4fc01daae5a5 9 #define PM(n) (volatile unsigned short *)(GPIO_BASE + 0x300 + ((n)*4))
bogdanm 92:4fc01daae5a5 10 #define PMC(n) (volatile unsigned short *)(GPIO_BASE + 0x400 + ((n)*4))
bogdanm 92:4fc01daae5a5 11 #define PFC(n) (volatile unsigned short *)(GPIO_BASE + 0x500 + ((n)*4))
bogdanm 92:4fc01daae5a5 12 #define PFCE(n) (volatile unsigned short *)(GPIO_BASE + 0x600 + ((n)*4))
bogdanm 92:4fc01daae5a5 13 #define PNOT(n) (volatile unsigned short *)(GPIO_BASE + 0x700 + ((n)*4))
bogdanm 92:4fc01daae5a5 14 #define PMSR(n) (volatile unsigned long *)(GPIO_BASE + 0x800 + ((n)*4))
bogdanm 92:4fc01daae5a5 15 #define PMCSR(n) (volatile unsigned long *)(GPIO_BASE + 0x900 + ((n)*4))
bogdanm 92:4fc01daae5a5 16 #define PFCAE(n) (volatile unsigned short *)(GPIO_BASE + 0xa00 + ((n)*4))
bogdanm 92:4fc01daae5a5 17 #define PIBC(n) (volatile unsigned short *)(GPIO_BASE + 0x4000 +((n)*4))
bogdanm 92:4fc01daae5a5 18 #define PBDC(n) (volatile unsigned short *)(GPIO_BASE + 0x4100 +((n)*4))
bogdanm 92:4fc01daae5a5 19 #define PIPC(n) (volatile unsigned short *)(GPIO_BASE + 0x4200 +((n)*4))
bogdanm 92:4fc01daae5a5 20
bogdanm 92:4fc01daae5a5 21 #endif/*__GPIO_ADDRDEFINE__*/
bogdanm 92:4fc01daae5a5 22