110 #ifndef BSPACM_DEVICE_TM4C_PERIPH_GPIO_H
111 #define BSPACM_DEVICE_TM4C_PERIPH_GPIO_H
204 int tag =
'A' + shift;
205 if ((
'O' - 2) < tag) {
207 }
else if ((
'I' - 1) < tag) {
230 #if defined(GPIOA_BASE)
231 if (gpio == (
void*)GPIOA_BASE)
return 0;
233 #if defined(GPIOA_AHB_BASE)
234 if (gpio == (
void*)GPIOA_AHB_BASE)
return 0;
236 #if defined(GPIOB_BASE)
237 if (gpio == (
void*)GPIOB_BASE)
return 1;
239 #if defined(GPIOB_AHB_BASE)
240 if (gpio == (
void*)GPIOB_AHB_BASE)
return 1;
242 #if defined(GPIOC_BASE)
243 if (gpio == (
void*)GPIOC_BASE)
return 2;
245 #if defined(GPIOC_AHB_BASE)
246 if (gpio == (
void*)GPIOC_AHB_BASE)
return 2;
248 #if defined(GPIOD_BASE)
249 if (gpio == (
void*)GPIOD_BASE)
return 3;
251 #if defined(GPIOD_AHB_BASE)
252 if (gpio == (
void*)GPIOD_AHB_BASE)
return 3;
254 #if defined(GPIOE_BASE)
255 if (gpio == (
void*)GPIOE_BASE)
return 4;
257 #if defined(GPIOE_AHB_BASE)
258 if (gpio == (
void*)GPIOE_AHB_BASE)
return 4;
260 #if defined(GPIOF_BASE)
261 if (gpio == (
void*)GPIOF_BASE)
return 5;
263 #if defined(GPIOF_AHB_BASE)
264 if (gpio == (
void*)GPIOF_AHB_BASE)
return 5;
266 #if defined(GPIOG_BASE)
267 if (gpio == (
void*)GPIOG_BASE)
return 6;
269 #if defined(GPIOG_AHB_BASE)
270 if (gpio == (
void*)GPIOG_AHB_BASE)
return 6;
272 #if defined(GPIOH_BASE)
273 if (gpio == (
void*)GPIOH_BASE)
return 7;
275 #if defined(GPIOH_AHB_BASE)
276 if (gpio == (
void*)GPIOH_AHB_BASE)
return 7;
279 #if defined(GPIOJ_BASE)
280 if (gpio == (
void*)GPIOJ_BASE)
return 8;
282 #if defined(GPIOJ_AHB_BASE)
283 if (gpio == (
void*)GPIOJ_AHB_BASE)
return 8;
285 #if defined(GPIOK_BASE)
286 if (gpio == (
void*)GPIOK_BASE)
return 9;
288 #if defined(GPIOK_AHB_BASE)
289 if (gpio == (
void*)GPIOK_AHB_BASE)
return 9;
291 #if defined(GPIOL_BASE)
292 if (gpio == (
void*)GPIOL_BASE)
return 10;
294 #if defined(GPIOL_AHB_BASE)
295 if (gpio == (
void*)GPIOL_AHB_BASE)
return 10;
297 #if defined(GPIOM_BASE)
298 if (gpio == (
void*)GPIOM_BASE)
return 11;
300 #if defined(GPIOM_AHB_BASE)
301 if (gpio == (
void*)GPIOM_AHB_BASE)
return 11;
303 #if defined(GPION_BASE)
304 if (gpio == (
void*)GPION_BASE)
return 12;
306 #if defined(GPION_AHB_BASE)
307 if (gpio == (
void*)GPION_AHB_BASE)
return 12;
310 #if defined(GPIOP_BASE)
311 if (gpio == (
void*)GPIOP_BASE)
return 13;
313 #if defined(GPIOP_AHB_BASE)
314 if (gpio == (
void*)GPIOP_AHB_BASE)
return 13;
316 #if defined(GPIOQ_BASE)
317 if (gpio == (
void*)GPIOQ_BASE)
return 14;
319 #if defined(GPIOQ_AHB_BASE)
320 if (gpio == (
void*)GPIOQ_AHB_BASE)
return 14;
322 #if defined(GPIOR_BASE)
323 if (gpio == (
void*)GPIOR_BASE)
return 15;
325 #if defined(GPIOR_AHB_BASE)
326 if (gpio == (
void*)GPIOR_AHB_BASE)
return 15;
328 #if defined(GPIOS_BASE)
329 if (gpio == (
void*)GPIOS_BASE)
return 16;
331 #if defined(GPIOS_AHB_BASE)
332 if (gpio == (
void*)GPIOS_AHB_BASE)
return 16;
334 #if defined(GPIOT_BASE)
335 if (gpio == (
void*)GPIOT_BASE)
return 17;
337 #if defined(GPIOT_AHB_BASE)
338 if (gpio == (
void*)GPIOT_AHB_BASE)
return 17;
Common header included by all BSPACM leaf headers.
struct sBSPACMdeviceTM4Cpinmux sBSPACMdeviceTM4Cpinmux
uint8_t pctl
Definition: gpio.h:150
GPIOCommon_Type * port
Definition: gpio.h:133
#define BSPACM_CORE_INLINE
Definition: core.h:65
static BSPACM_CORE_INLINE int iBSPACMdeviceTM4CgpioPortShift(void *gpio)
Definition: gpio.h:228
void vBSPACMdeviceTM4CpinmuxConfigure(const sBSPACMdeviceTM4Cpinmux *cfgp, int enablep)
uint8_t pin
Definition: gpio.h:136
static BSPACM_CORE_INLINE int iBSPACMdeviceTM4CgpioPortTagFromShift(unsigned int shift)
Definition: gpio.h:202
uint8_t irqn
Definition: gpio.h:154