Last change
on this file was 374, checked in by coas-nagasima, 5 years ago |
mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifndef __GPIO_ADDRDEFINE__
|
---|
2 | #define __GPIO_ADDRDEFINE__
|
---|
3 |
|
---|
4 | #define GPIO_BASE ((long)0xFCFE3000uL) /* GPIO */
|
---|
5 |
|
---|
6 | #define PORT(n) (volatile unsigned short *)(GPIO_BASE + 0x000 + ((n)*4))
|
---|
7 | #define PSR(n) (volatile unsigned long *)(GPIO_BASE + 0x100 + ((n)*4))
|
---|
8 | #define PPR(n) (volatile unsigned short *)(GPIO_BASE + 0x200 + ((n)*4))
|
---|
9 | #define PM(n) (volatile unsigned short *)(GPIO_BASE + 0x300 + ((n)*4))
|
---|
10 | #define PMC(n) (volatile unsigned short *)(GPIO_BASE + 0x400 + ((n)*4))
|
---|
11 | #define PFC(n) (volatile unsigned short *)(GPIO_BASE + 0x500 + ((n)*4))
|
---|
12 | #define PFCE(n) (volatile unsigned short *)(GPIO_BASE + 0x600 + ((n)*4))
|
---|
13 | #define PNOT(n) (volatile unsigned short *)(GPIO_BASE + 0x700 + ((n)*4))
|
---|
14 | #define PMSR(n) (volatile unsigned long *)(GPIO_BASE + 0x800 + ((n)*4))
|
---|
15 | #define PMCSR(n) (volatile unsigned long *)(GPIO_BASE + 0x900 + ((n)*4))
|
---|
16 | #define PFCAE(n) (volatile unsigned short *)(GPIO_BASE + 0xa00 + ((n)*4))
|
---|
17 | #define PIBC(n) (volatile unsigned short *)(GPIO_BASE + 0x4000 +((n)*4))
|
---|
18 | #define PBDC(n) (volatile unsigned short *)(GPIO_BASE + 0x4100 +((n)*4))
|
---|
19 | #define PIPC(n) (volatile unsigned short *)(GPIO_BASE + 0x4200 +((n)*4))
|
---|
20 |
|
---|
21 | #endif/*__GPIO_ADDRDEFINE__*/
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.