]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/arch/arm/mach-lpc21xx/defines/lpcGPIO.h
f4c78c92859082fd0b603ca4268fb08365edad6d
[lincan.git] / embedded / arch / arm / mach-lpc21xx / defines / lpcGPIO.h
1 /******************************************************************************
2  *
3  * $RCSfile: lpcGPIO.h,v $
4  * $Revision: 1.1 $
5  *
6  * Header file for Philips LPC ARM Processors.
7  * Copyright 2004 R O SoftWare
8  *
9  * No guarantees, warrantees, or promises, implied or otherwise.
10  * May be used for hobby or commercial purposes provided copyright
11  * notice remains intact.
12  *
13  *****************************************************************************/
14 #ifndef INC_LPC_GPIO_H
15 #define INC_LPC_GPIO_H
16
17 // General Purpose Input/Output Registers (GPIO)
18 typedef struct
19 {
20   REG32 in0;                            // P0 Pin Value Register
21   REG32 set0;                           // P0 Pin Output Set Register
22   REG32 dir0;                           // P0 Pin Direction Register
23   REG32 clr0;                           // P0 Pin Output Clear Register
24   REG32 in1;                            // P1 Pin Value Register
25   REG32 set1;                           // P1 Pin Output Set Register
26   REG32 dir1;                           // P1 Pin Direction Register
27   REG32 clr1;                           // P1 Pin Output Clear Register
28   REG32 in2;                            // P2 Pin Value Register
29   REG32 set2;                           // P2 Pin Output Set Register
30   REG32 dir2;                           // P2 Pin Direction Register
31   REG32 clr2;                           // P2 Pin Output Clear Register
32   REG32 in3;                            // P3 Pin Value Register
33   REG32 set3;                           // P3 Pin Output Set Register
34   REG32 dir3;                           // P3 Pin Direction Register
35   REG32 clr3;                           // P3 Pin Output Clear Register
36 } gpioRegs_t;
37
38 #endif