32 #ifndef __IOCON_11XX_H_
33 #define __IOCON_11XX_H_
47 #if defined(CHIP_LPC11UXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11AXX)
57 typedef enum CHIP_IOCON_PIO {
107 typedef enum CHIP_IOCON_PIN_LOC {
129 #define IOCON_FUNC0 0x0
130 #define IOCON_FUNC1 0x1
131 #define IOCON_FUNC2 0x2
132 #define IOCON_FUNC3 0x3
133 #define IOCON_FUNC4 0x4
134 #define IOCON_FUNC5 0x5
135 #define IOCON_FUNC6 0x6
136 #define IOCON_FUNC7 0x7
137 #define IOCON_MODE_INACT (0x0 << 3)
138 #define IOCON_MODE_PULLDOWN (0x1 << 3)
139 #define IOCON_MODE_PULLUP (0x2 << 3)
140 #define IOCON_MODE_REPEATER (0x3 << 3)
141 #define IOCON_HYS_EN (0x1 << 5)
142 #define IOCON_INV_EN (0x1 << 6)
143 #define IOCON_ADMODE_EN (0x0 << 7)
144 #define IOCON_DIGMODE_EN (0x1 << 7)
145 #define IOCON_SFI2C_EN (0x0 << 8)
146 #define IOCON_STDI2C_EN (0x1 << 8)
147 #define IOCON_FASTI2C_EN (0x2 << 8)
148 #define IOCON_FILT_DIS (0x1 << 8)
149 #define IOCON_OPENDRAIN_EN (0x1 << 10)
155 #define MD_PUP (0x0 << 3)
156 #define MD_BUK (0x1 << 3)
157 #define MD_PLN (0x2 << 3)
158 #define MD_PDN (0x3 << 3)
159 #define MD_HYS (0x1 << 5)
160 #define MD_INV (0x1 << 6)
161 #define MD_ADMODE (0x0 << 7)
162 #define MD_DIGMODE (0x1 << 7)
163 #define MD_DISFIL (0x0 << 8)
164 #define MD_ENFIL (0x1 << 8)
165 #define MD_SFI2C (0x0 << 8)
166 #define MD_STDI2C (0x1 << 8)
167 #define MD_FASTI2C (0x2 << 8)
168 #define MD_OPENDRAIN (0x1 << 10)
178 #if defined(CHIP_LPC11UXX) || defined(CHIP_LPC11EXX) || defined(CHIP_LPC11AXX)
214 pIOCON->
REG[pin] = modefunc;
238 pIOCON->
REG[sel >> 2] = sel & 0x03;