STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Collaboration diagram for GPIO Get Port Index:

Macros

#define GPIO_GET_INDEX(__GPIOx__)
 

Detailed Description

Macro Definition Documentation

◆ GPIO_GET_INDEX

#define GPIO_GET_INDEX ( __GPIOx__)

#include <stm32f4xx_hal_gpio_ex.h>

Value:
(uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\
((__GPIOx__) == (GPIOB))? 1U :\
((__GPIOx__) == (GPIOC))? 2U :\
((__GPIOx__) == (GPIOD))? 3U :\
((__GPIOx__) == (GPIOE))? 4U :\
((__GPIOx__) == (GPIOF))? 5U :\
((__GPIOx__) == (GPIOG))? 6U : 7U)

Definition at line 1306 of file stm32f4xx_hal_gpio_ex.h.

Referenced by HAL_GPIO_DeInit(), and HAL_GPIO_Init().