• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef _SOC_GPIO_SIG_MAP_H_
15 #define _SOC_GPIO_SIG_MAP_H_
16 
17 #define SPICLK_IN_IDX			0
18 #define SPICLK_OUT_IDX			0
19 #define SPIQ_IN_IDX			1
20 #define SPIQ_OUT_IDX			1
21 #define SPID_IN_IDX			2
22 #define SPID_OUT_IDX			2
23 #define SPIHD_IN_IDX			3
24 #define SPIHD_OUT_IDX			3
25 #define SPIWP_IN_IDX			4
26 #define SPIWP_OUT_IDX			4
27 #define SPICS0_IN_IDX			5
28 #define SPICS0_OUT_IDX			5
29 #define SPICS1_IN_IDX			6
30 #define SPICS1_OUT_IDX			6
31 #define SPICS2_IN_IDX			7
32 #define SPICS2_OUT_IDX			7
33 #define HSPICLK_IN_IDX			8
34 #define HSPICLK_OUT_IDX			8
35 #define HSPIQ_IN_IDX			9
36 #define HSPIQ_OUT_IDX			9
37 #define HSPID_IN_IDX			10
38 #define HSPID_OUT_IDX			10
39 #define HSPICS0_IN_IDX			11
40 #define HSPICS0_OUT_IDX			11
41 #define HSPIHD_IN_IDX			12
42 #define HSPIHD_OUT_IDX			12
43 #define HSPIWP_IN_IDX			13
44 #define HSPIWP_OUT_IDX			13
45 #define U0RXD_IN_IDX			14
46 #define U0TXD_OUT_IDX			14
47 #define U0CTS_IN_IDX			15
48 #define U0RTS_OUT_IDX			15
49 #define U0DSR_IN_IDX			16
50 #define U0DTR_OUT_IDX			16
51 #define U1RXD_IN_IDX			17
52 #define U1TXD_OUT_IDX			17
53 #define U1CTS_IN_IDX			18
54 #define U1RTS_OUT_IDX			18
55 #define I2CM_SCL_O_IDX			19
56 #define I2CM_SDA_I_IDX			20
57 #define I2CM_SDA_O_IDX			20
58 #define EXT_I2C_SCL_O_IDX			21
59 #define EXT_I2C_SDA_O_IDX			22
60 #define EXT_I2C_SDA_I_IDX			22
61 #define I2S0O_BCK_IN_IDX			23
62 #define I2S0O_BCK_OUT_IDX			23
63 #define I2S1O_BCK_IN_IDX			24
64 #define I2S1O_BCK_OUT_IDX			24
65 #define I2S0O_WS_IN_IDX			25
66 #define I2S0O_WS_OUT_IDX			25
67 #define I2S1O_WS_IN_IDX			26
68 #define I2S1O_WS_OUT_IDX			26
69 #define I2S0I_BCK_IN_IDX			27
70 #define I2S0I_BCK_OUT_IDX			27
71 #define I2S0I_WS_IN_IDX			28
72 #define I2S0I_WS_OUT_IDX			28
73 #define I2CEXT0_SCL_IN_IDX			29
74 #define I2CEXT0_SCL_OUT_IDX			29
75 #define I2CEXT0_SDA_IN_IDX			30
76 #define I2CEXT0_SDA_OUT_IDX			30
77 #define PWM0_SYNC0_IN_IDX			31
78 #define SDIO_TOHOST_INT_OUT_IDX			31
79 #define PWM0_SYNC1_IN_IDX			32
80 #define PWM0_OUT0A_IDX			32
81 #define PWM0_SYNC2_IN_IDX			33
82 #define PWM0_OUT0B_IDX			33
83 #define PWM0_F0_IN_IDX			34
84 #define PWM0_OUT1A_IDX			34
85 #define PWM0_F1_IN_IDX			35
86 #define PWM0_OUT1B_IDX			35
87 #define PWM0_F2_IN_IDX			36
88 #define PWM0_OUT2A_IDX			36
89 #define GPIO_BT_ACTIVE_IDX			37
90 #define PWM0_OUT2B_IDX			37
91 #define GPIO_BT_PRIORITY_IDX			38
92 #define PCNT_SIG_CH0_IN0_IDX			39
93 #define PCNT_SIG_CH1_IN0_IDX			40
94 #define GPIO_WLAN_ACTIVE_IDX			40
95 #define PCNT_CTRL_CH0_IN0_IDX			41
96 #define BB_DIAG0_IDX			41
97 #define PCNT_CTRL_CH1_IN0_IDX			42
98 #define BB_DIAG1_IDX			42
99 #define PCNT_SIG_CH0_IN1_IDX			43
100 #define BB_DIAG2_IDX			43
101 #define PCNT_SIG_CH1_IN1_IDX			44
102 #define BB_DIAG3_IDX			44
103 #define PCNT_CTRL_CH0_IN1_IDX			45
104 #define BB_DIAG4_IDX			45
105 #define PCNT_CTRL_CH1_IN1_IDX			46
106 #define BB_DIAG5_IDX			46
107 #define PCNT_SIG_CH0_IN2_IDX			47
108 #define BB_DIAG6_IDX			47
109 #define PCNT_SIG_CH1_IN2_IDX			48
110 #define BB_DIAG7_IDX			48
111 #define PCNT_CTRL_CH0_IN2_IDX			49
112 #define BB_DIAG8_IDX			49
113 #define PCNT_CTRL_CH1_IN2_IDX			50
114 #define BB_DIAG9_IDX			50
115 #define PCNT_SIG_CH0_IN3_IDX			51
116 #define BB_DIAG10_IDX			51
117 #define PCNT_SIG_CH1_IN3_IDX			52
118 #define BB_DIAG11_IDX			52
119 #define PCNT_CTRL_CH0_IN3_IDX			53
120 #define BB_DIAG12_IDX			53
121 #define PCNT_CTRL_CH1_IN3_IDX			54
122 #define BB_DIAG13_IDX			54
123 #define PCNT_SIG_CH0_IN4_IDX			55
124 #define BB_DIAG14_IDX			55
125 #define PCNT_SIG_CH1_IN4_IDX			56
126 #define BB_DIAG15_IDX			56
127 #define PCNT_CTRL_CH0_IN4_IDX			57
128 #define BB_DIAG16_IDX			57
129 #define PCNT_CTRL_CH1_IN4_IDX			58
130 #define BB_DIAG17_IDX			58
131 #define BB_DIAG18_IDX			59
132 #define BB_DIAG19_IDX			60
133 #define HSPICS1_IN_IDX			61
134 #define HSPICS1_OUT_IDX			61
135 #define HSPICS2_IN_IDX			62
136 #define HSPICS2_OUT_IDX			62
137 #define VSPICLK_IN_IDX			63
138 #define VSPICLK_OUT_IDX			63
139 #define VSPIQ_IN_IDX			64
140 #define VSPIQ_OUT_IDX			64
141 #define VSPID_IN_IDX			65
142 #define VSPID_OUT_IDX			65
143 #define VSPIHD_IN_IDX			66
144 #define VSPIHD_OUT_IDX			66
145 #define VSPIWP_IN_IDX			67
146 #define VSPIWP_OUT_IDX			67
147 #define VSPICS0_IN_IDX			68
148 #define VSPICS0_OUT_IDX			68
149 #define VSPICS1_IN_IDX			69
150 #define VSPICS1_OUT_IDX			69
151 #define VSPICS2_IN_IDX			70
152 #define VSPICS2_OUT_IDX			70
153 #define PCNT_SIG_CH0_IN5_IDX			71
154 #define LEDC_HS_SIG_OUT0_IDX			71
155 #define PCNT_SIG_CH1_IN5_IDX			72
156 #define LEDC_HS_SIG_OUT1_IDX			72
157 #define PCNT_CTRL_CH0_IN5_IDX			73
158 #define LEDC_HS_SIG_OUT2_IDX			73
159 #define PCNT_CTRL_CH1_IN5_IDX			74
160 #define LEDC_HS_SIG_OUT3_IDX			74
161 #define PCNT_SIG_CH0_IN6_IDX			75
162 #define LEDC_HS_SIG_OUT4_IDX			75
163 #define PCNT_SIG_CH1_IN6_IDX			76
164 #define LEDC_HS_SIG_OUT5_IDX			76
165 #define PCNT_CTRL_CH0_IN6_IDX			77
166 #define LEDC_HS_SIG_OUT6_IDX			77
167 #define PCNT_CTRL_CH1_IN6_IDX			78
168 #define LEDC_HS_SIG_OUT7_IDX			78
169 #define PCNT_SIG_CH0_IN7_IDX			79
170 #define LEDC_LS_SIG_OUT0_IDX			79
171 #define PCNT_SIG_CH1_IN7_IDX			80
172 #define LEDC_LS_SIG_OUT1_IDX			80
173 #define PCNT_CTRL_CH0_IN7_IDX			81
174 #define LEDC_LS_SIG_OUT2_IDX			81
175 #define PCNT_CTRL_CH1_IN7_IDX			82
176 #define LEDC_LS_SIG_OUT3_IDX			82
177 #define RMT_SIG_IN0_IDX			83
178 #define LEDC_LS_SIG_OUT4_IDX			83
179 #define RMT_SIG_IN1_IDX			84
180 #define LEDC_LS_SIG_OUT5_IDX			84
181 #define RMT_SIG_IN2_IDX			85
182 #define LEDC_LS_SIG_OUT6_IDX			85
183 #define RMT_SIG_IN3_IDX			86
184 #define LEDC_LS_SIG_OUT7_IDX			86
185 #define RMT_SIG_IN4_IDX			87
186 #define RMT_SIG_OUT0_IDX			87
187 #define RMT_SIG_IN5_IDX			88
188 #define RMT_SIG_OUT1_IDX			88
189 #define RMT_SIG_IN6_IDX			89
190 #define RMT_SIG_OUT2_IDX			89
191 #define RMT_SIG_IN7_IDX			90
192 #define RMT_SIG_OUT3_IDX			90
193 #define RMT_SIG_OUT4_IDX			91
194 #define RMT_SIG_OUT5_IDX			92
195 #define EXT_ADC_START_IDX			93
196 #define RMT_SIG_OUT6_IDX			93
197 #define TWAI_RX_IDX			94
198 #define CAN_RX_IDX			TWAI_RX_IDX
199 #define RMT_SIG_OUT7_IDX			94
200 #define I2CEXT1_SCL_IN_IDX			95
201 #define I2CEXT1_SCL_OUT_IDX			95
202 #define I2CEXT1_SDA_IN_IDX			96
203 #define I2CEXT1_SDA_OUT_IDX			96
204 #define HOST_CARD_DETECT_N_1_IDX			97
205 #define HOST_CCMD_OD_PULLUP_EN_N_IDX			97
206 #define HOST_CARD_DETECT_N_2_IDX			98
207 #define HOST_RST_N_1_IDX			98
208 #define HOST_CARD_WRITE_PRT_1_IDX			99
209 #define HOST_RST_N_2_IDX			99
210 #define HOST_CARD_WRITE_PRT_2_IDX			100
211 #define GPIO_SD0_OUT_IDX			100
212 #define HOST_CARD_INT_N_1_IDX			101
213 #define GPIO_SD1_OUT_IDX			101
214 #define HOST_CARD_INT_N_2_IDX			102
215 #define GPIO_SD2_OUT_IDX			102
216 #define PWM1_SYNC0_IN_IDX			103
217 #define GPIO_SD3_OUT_IDX			103
218 #define PWM1_SYNC1_IN_IDX			104
219 #define GPIO_SD4_OUT_IDX			104
220 #define PWM1_SYNC2_IN_IDX			105
221 #define GPIO_SD5_OUT_IDX			105
222 #define PWM1_F0_IN_IDX			106
223 #define GPIO_SD6_OUT_IDX			106
224 #define PWM1_F1_IN_IDX			107
225 #define GPIO_SD7_OUT_IDX			107
226 #define PWM1_F2_IN_IDX			108
227 #define PWM1_OUT0A_IDX			108
228 #define PWM0_CAP0_IN_IDX			109
229 #define PWM1_OUT0B_IDX			109
230 #define PWM0_CAP1_IN_IDX			110
231 #define PWM1_OUT1A_IDX			110
232 #define PWM0_CAP2_IN_IDX			111
233 #define PWM1_OUT1B_IDX			111
234 #define PWM1_CAP0_IN_IDX			112
235 #define PWM1_OUT2A_IDX			112
236 #define PWM1_CAP1_IN_IDX			113
237 #define PWM1_OUT2B_IDX			113
238 #define PWM1_CAP2_IN_IDX			114
239 #define PWM2_OUT1H_IDX			114
240 #define PWM2_FLTA_IDX			115
241 #define PWM2_OUT1L_IDX			115
242 #define PWM2_FLTB_IDX			116
243 #define PWM2_OUT2H_IDX			116
244 #define PWM2_CAP1_IN_IDX			117
245 #define PWM2_OUT2L_IDX			117
246 #define PWM2_CAP2_IN_IDX			118
247 #define PWM2_OUT3H_IDX			118
248 #define PWM2_CAP3_IN_IDX			119
249 #define PWM2_OUT3L_IDX			119
250 #define PWM3_FLTA_IDX			120
251 #define PWM2_OUT4H_IDX			120
252 #define PWM3_FLTB_IDX			121
253 #define PWM2_OUT4L_IDX			121
254 #define PWM3_CAP1_IN_IDX			122
255 #define PWM3_CAP2_IN_IDX			123
256 #define TWAI_TX_IDX			123
257 #define CAN_TX_IDX			TWAI_TX_IDX
258 #define PWM3_CAP3_IN_IDX			124
259 #define TWAI_BUS_OFF_ON_IDX			124
260 #define CAN_BUS_OFF_ON_IDX			TWAI_BUS_OFF_ON_IDX
261 #define TWAI_CLKOUT_IDX			125
262 #define CAN_CLKOUT_IDX			TWAI_CLKOUT_IDX
263 #define SPID4_IN_IDX			128
264 #define SPID4_OUT_IDX			128
265 #define SPID5_IN_IDX			129
266 #define SPID5_OUT_IDX			129
267 #define SPID6_IN_IDX			130
268 #define SPID6_OUT_IDX			130
269 #define SPID7_IN_IDX			131
270 #define SPID7_OUT_IDX			131
271 #define HSPID4_IN_IDX			132
272 #define HSPID4_OUT_IDX			132
273 #define HSPID5_IN_IDX			133
274 #define HSPID5_OUT_IDX			133
275 #define HSPID6_IN_IDX			134
276 #define HSPID6_OUT_IDX			134
277 #define HSPID7_IN_IDX			135
278 #define HSPID7_OUT_IDX			135
279 #define VSPID4_IN_IDX			136
280 #define VSPID4_OUT_IDX			136
281 #define VSPID5_IN_IDX			137
282 #define VSPID5_OUT_IDX			137
283 #define VSPID6_IN_IDX			138
284 #define VSPID6_OUT_IDX			138
285 #define VSPID7_IN_IDX			139
286 #define VSPID7_OUT_IDX			139
287 #define I2S0I_DATA_IN0_IDX			140
288 #define I2S0O_DATA_OUT0_IDX			140
289 #define I2S0I_DATA_IN1_IDX			141
290 #define I2S0O_DATA_OUT1_IDX			141
291 #define I2S0I_DATA_IN2_IDX			142
292 #define I2S0O_DATA_OUT2_IDX			142
293 #define I2S0I_DATA_IN3_IDX			143
294 #define I2S0O_DATA_OUT3_IDX			143
295 #define I2S0I_DATA_IN4_IDX			144
296 #define I2S0O_DATA_OUT4_IDX			144
297 #define I2S0I_DATA_IN5_IDX			145
298 #define I2S0O_DATA_OUT5_IDX			145
299 #define I2S0I_DATA_IN6_IDX			146
300 #define I2S0O_DATA_OUT6_IDX			146
301 #define I2S0I_DATA_IN7_IDX			147
302 #define I2S0O_DATA_OUT7_IDX			147
303 #define I2S0I_DATA_IN8_IDX			148
304 #define I2S0O_DATA_OUT8_IDX			148
305 #define I2S0I_DATA_IN9_IDX			149
306 #define I2S0O_DATA_OUT9_IDX			149
307 #define I2S0I_DATA_IN10_IDX			150
308 #define I2S0O_DATA_OUT10_IDX			150
309 #define I2S0I_DATA_IN11_IDX			151
310 #define I2S0O_DATA_OUT11_IDX			151
311 #define I2S0I_DATA_IN12_IDX			152
312 #define I2S0O_DATA_OUT12_IDX			152
313 #define I2S0I_DATA_IN13_IDX			153
314 #define I2S0O_DATA_OUT13_IDX			153
315 #define I2S0I_DATA_IN14_IDX			154
316 #define I2S0O_DATA_OUT14_IDX			154
317 #define I2S0I_DATA_IN15_IDX			155
318 #define I2S0O_DATA_OUT15_IDX			155
319 #define I2S0O_DATA_OUT16_IDX			156
320 #define I2S0O_DATA_OUT17_IDX			157
321 #define I2S0O_DATA_OUT18_IDX			158
322 #define I2S0O_DATA_OUT19_IDX			159
323 #define I2S0O_DATA_OUT20_IDX			160
324 #define I2S0O_DATA_OUT21_IDX			161
325 #define I2S0O_DATA_OUT22_IDX			162
326 #define I2S0O_DATA_OUT23_IDX			163
327 #define I2S1I_BCK_IN_IDX			164
328 #define I2S1I_BCK_OUT_IDX			164
329 #define I2S1I_WS_IN_IDX			165
330 #define I2S1I_WS_OUT_IDX			165
331 #define I2S1I_DATA_IN0_IDX			166
332 #define I2S1O_DATA_OUT0_IDX			166
333 #define I2S1I_DATA_IN1_IDX			167
334 #define I2S1O_DATA_OUT1_IDX			167
335 #define I2S1I_DATA_IN2_IDX			168
336 #define I2S1O_DATA_OUT2_IDX			168
337 #define I2S1I_DATA_IN3_IDX			169
338 #define I2S1O_DATA_OUT3_IDX			169
339 #define I2S1I_DATA_IN4_IDX			170
340 #define I2S1O_DATA_OUT4_IDX			170
341 #define I2S1I_DATA_IN5_IDX			171
342 #define I2S1O_DATA_OUT5_IDX			171
343 #define I2S1I_DATA_IN6_IDX			172
344 #define I2S1O_DATA_OUT6_IDX			172
345 #define I2S1I_DATA_IN7_IDX			173
346 #define I2S1O_DATA_OUT7_IDX			173
347 #define I2S1I_DATA_IN8_IDX			174
348 #define I2S1O_DATA_OUT8_IDX			174
349 #define I2S1I_DATA_IN9_IDX			175
350 #define I2S1O_DATA_OUT9_IDX			175
351 #define I2S1I_DATA_IN10_IDX			176
352 #define I2S1O_DATA_OUT10_IDX			176
353 #define I2S1I_DATA_IN11_IDX			177
354 #define I2S1O_DATA_OUT11_IDX			177
355 #define I2S1I_DATA_IN12_IDX			178
356 #define I2S1O_DATA_OUT12_IDX			178
357 #define I2S1I_DATA_IN13_IDX			179
358 #define I2S1O_DATA_OUT13_IDX			179
359 #define I2S1I_DATA_IN14_IDX			180
360 #define I2S1O_DATA_OUT14_IDX			180
361 #define I2S1I_DATA_IN15_IDX			181
362 #define I2S1O_DATA_OUT15_IDX			181
363 #define I2S1O_DATA_OUT16_IDX			182
364 #define I2S1O_DATA_OUT17_IDX			183
365 #define I2S1O_DATA_OUT18_IDX			184
366 #define I2S1O_DATA_OUT19_IDX			185
367 #define I2S1O_DATA_OUT20_IDX			186
368 #define I2S1O_DATA_OUT21_IDX			187
369 #define I2S1O_DATA_OUT22_IDX			188
370 #define I2S1O_DATA_OUT23_IDX			189
371 #define I2S0I_H_SYNC_IDX			190
372 #define PWM3_OUT1H_IDX			190
373 #define I2S0I_V_SYNC_IDX			191
374 #define PWM3_OUT1L_IDX			191
375 #define I2S0I_H_ENABLE_IDX			192
376 #define PWM3_OUT2H_IDX			192
377 #define I2S1I_H_SYNC_IDX			193
378 #define PWM3_OUT2L_IDX			193
379 #define I2S1I_V_SYNC_IDX			194
380 #define PWM3_OUT3H_IDX			194
381 #define I2S1I_H_ENABLE_IDX			195
382 #define PWM3_OUT3L_IDX			195
383 #define PWM3_OUT4H_IDX			196
384 #define PWM3_OUT4L_IDX			197
385 #define U2RXD_IN_IDX			198
386 #define U2TXD_OUT_IDX			198
387 #define U2CTS_IN_IDX			199
388 #define U2RTS_OUT_IDX			199
389 #define EMAC_MDC_I_IDX			200
390 #define EMAC_MDC_O_IDX			200
391 #define EMAC_MDI_I_IDX			201
392 #define EMAC_MDO_O_IDX			201
393 #define EMAC_CRS_I_IDX			202
394 #define EMAC_CRS_O_IDX			202
395 #define EMAC_COL_I_IDX			203
396 #define EMAC_COL_O_IDX			203
397 #define PCMFSYNC_IN_IDX			204
398 #define BT_AUDIO0_IRQ_IDX			204
399 #define PCMCLK_IN_IDX			205
400 #define BT_AUDIO1_IRQ_IDX			205
401 #define PCMDIN_IDX			206
402 #define BT_AUDIO2_IRQ_IDX			206
403 #define BLE_AUDIO0_IRQ_IDX			207
404 #define BLE_AUDIO1_IRQ_IDX			208
405 #define BLE_AUDIO2_IRQ_IDX			209
406 #define PCMFSYNC_OUT_IDX			210
407 #define PCMCLK_OUT_IDX			211
408 #define PCMDOUT_IDX			212
409 #define BLE_AUDIO_SYNC0_P_IDX			213
410 #define BLE_AUDIO_SYNC1_P_IDX			214
411 #define BLE_AUDIO_SYNC2_P_IDX			215
412 #define ANT_SEL0_IDX			216
413 #define ANT_SEL1_IDX			217
414 #define ANT_SEL2_IDX			218
415 #define ANT_SEL3_IDX			219
416 #define ANT_SEL4_IDX			220
417 #define ANT_SEL5_IDX			221
418 #define ANT_SEL6_IDX			222
419 #define ANT_SEL7_IDX			223
420 #define SIG_IN_FUNC224_IDX			224
421 #define SIG_IN_FUNC225_IDX			225
422 #define SIG_IN_FUNC226_IDX			226
423 #define SIG_IN_FUNC227_IDX			227
424 #define SIG_IN_FUNC228_IDX			228
425 #define SIG_GPIO_OUT_IDX            256
426 #endif /* _SOC_GPIO_SIG_MAP_H_ */
427