STM32F103xB HAL User Manual
Defines
GPIOEx Private Macros
GPIOEx

Defines

#define GPIO_GET_INDEX(__GPIOx__)
#define AFIO_REMAP_ENABLE(REMAP_PIN)
#define AFIO_REMAP_DISABLE(REMAP_PIN)
#define AFIO_REMAP_PARTIAL(REMAP_PIN, REMAP_PIN_MASK)
#define AFIO_DBGAFR_CONFIG(DBGAFR_SWJCFG)

Define Documentation

#define AFIO_DBGAFR_CONFIG (   DBGAFR_SWJCFG)
Value:
do{ uint32_t tmpreg = AFIO->MAPR;     \
                                               tmpreg &= ~AFIO_MAPR_SWJ_CFG_Msk; \
                                               tmpreg |= DBGAFR_SWJCFG;          \
                                               AFIO->MAPR = tmpreg;              \
                                               }while(0u)

Definition at line 848 of file stm32f1xx_hal_gpio_ex.h.

#define AFIO_REMAP_DISABLE (   REMAP_PIN)
Value:
do{ uint32_t tmpreg = AFIO->MAPR;  \
                                               tmpreg |= AFIO_MAPR_SWJ_CFG;   \
                                               tmpreg &= ~REMAP_PIN;          \
                                               AFIO->MAPR = tmpreg;           \
                                               }while(0u)

Definition at line 835 of file stm32f1xx_hal_gpio_ex.h.

#define AFIO_REMAP_ENABLE (   REMAP_PIN)
Value:
do{ uint32_t tmpreg = AFIO->MAPR; \
                                               tmpreg |= AFIO_MAPR_SWJ_CFG;  \
                                               tmpreg |= REMAP_PIN;          \
                                               AFIO->MAPR = tmpreg;          \
                                               }while(0u)

Definition at line 829 of file stm32f1xx_hal_gpio_ex.h.

#define AFIO_REMAP_PARTIAL (   REMAP_PIN,
  REMAP_PIN_MASK 
)
Value:
do{ uint32_t tmpreg = AFIO->MAPR; \
                                                          tmpreg &= ~REMAP_PIN_MASK;    \
                                                          tmpreg |= AFIO_MAPR_SWJ_CFG;  \
                                                          tmpreg |= REMAP_PIN;          \
                                                          AFIO->MAPR = tmpreg;          \
                                                          }while(0u)

Definition at line 841 of file stm32f1xx_hal_gpio_ex.h.

#define GPIO_GET_INDEX (   __GPIOx__)
Value:
(((__GPIOx__) == (GPIOA))? 0uL :\
                                   ((__GPIOx__) == (GPIOB))? 1uL :\
                                   ((__GPIOx__) == (GPIOC))? 2uL :\
                                   ((__GPIOx__) == (GPIOD))? 3uL :4uL)

Definition at line 816 of file stm32f1xx_hal_gpio_ex.h.

Referenced by HAL_GPIO_DeInit(), and HAL_GPIO_Init().