DIY Logging Volt/Ampmeter
GPIOEx Private Macros

Macros

#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)
 

Detailed Description

Macro Definition Documentation

◆ AFIO_DBGAFR_CONFIG

#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.

◆ AFIO_REMAP_DISABLE

#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.

◆ AFIO_REMAP_ENABLE

#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.

◆ AFIO_REMAP_PARTIAL

#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.

AFIO_MAPR_SWJ_CFG
#define AFIO_MAPR_SWJ_CFG
Definition: stm32f103xb.h:2129
AFIO_MAPR_SWJ_CFG_Msk
#define AFIO_MAPR_SWJ_CFG_Msk
Definition: stm32f103xb.h:2128
AFIO
#define AFIO
Definition: stm32f103xb.h:663