#define GPIO_Remap_SPI1 ((uint32_t)0x00000001) |
SPI1 Alternate Function mapping
#define GPIO_Remap_I2C1 ((uint32_t)0x00000002) |
I2C1 Alternate Function mapping
Referenced by Stm32I2cBus1Init().
#define GPIO_Remap_USART1 ((uint32_t)0x00000004) |
USART1 Alternate Function mapping
#define GPIO_Remap_USART2 ((uint32_t)0x00000008) |
USART2 Alternate Function mapping
#define GPIO_PartialRemap_USART3 ((uint32_t)0x00140010) |
USART3 Partial Alternate Function mapping
#define GPIO_FullRemap_USART3 ((uint32_t)0x00140030) |
USART3 Full Alternate Function mapping
Referenced by Stm32Usart3BusSelect().
#define GPIO_PartialRemap_TIM1 ((uint32_t)0x00160040) |
TIM1 Partial Alternate Function mapping
#define GPIO_FullRemap_TIM1 ((uint32_t)0x001600C0) |
TIM1 Full Alternate Function mapping
#define GPIO_PartialRemap1_TIM2 ((uint32_t)0x00180100) |
TIM2 Partial1 Alternate Function mapping
#define GPIO_PartialRemap2_TIM2 ((uint32_t)0x00180200) |
TIM2 Partial2 Alternate Function mapping
#define GPIO_FullRemap_TIM2 ((uint32_t)0x00180300) |
TIM2 Full Alternate Function mapping
#define GPIO_PartialRemap_TIM3 ((uint32_t)0x001A0800) |
TIM3 Partial Alternate Function mapping
#define GPIO_FullRemap_TIM3 ((uint32_t)0x001A0C00) |
TIM3 Full Alternate Function mapping
#define GPIO_Remap_TIM4 ((uint32_t)0x00001000) |
TIM4 Alternate Function mapping
#define GPIO_Remap1_CAN1 ((uint32_t)0x001D4000) |
CAN1 Alternate Function mapping
#define GPIO_Remap2_CAN1 ((uint32_t)0x001D6000) |
CAN1 Alternate Function mapping
#define GPIO_Remap_PD01 ((uint32_t)0x00008000) |
PD01 Alternate Function mapping
#define GPIO_Remap_TIM5CH4_LSI ((uint32_t)0x00200001) |
LSI connected to TIM5 Channel4 input capture for calibration
#define GPIO_Remap_ADC1_ETRGINJ ((uint32_t)0x00200002) |
ADC1 External Trigger Injected Conversion remapping
#define GPIO_Remap_ADC1_ETRGREG ((uint32_t)0x00200004) |
ADC1 External Trigger Regular Conversion remapping
#define GPIO_Remap_ADC2_ETRGINJ ((uint32_t)0x00200008) |
ADC2 External Trigger Injected Conversion remapping
#define GPIO_Remap_ADC2_ETRGREG ((uint32_t)0x00200010) |
ADC2 External Trigger Regular Conversion remapping
#define GPIO_Remap_ETH ((uint32_t)0x00200020) |
Ethernet remapping (only for Connectivity line devices)
Referenced by EmacInit().
#define GPIO_Remap_CAN2 ((uint32_t)0x00200040) |
CAN2 remapping (only for Connectivity line devices)
#define GPIO_Remap_SWJ_NoJTRST ((uint32_t)0x00300100) |
Full SWJ Enabled (JTAG-DP + SW-DP) but without JTRST
#define GPIO_Remap_SWJ_JTAGDisable ((uint32_t)0x00300200) |
JTAG-DP Disabled and SW-DP Enabled
#define GPIO_Remap_SWJ_Disable ((uint32_t)0x00300400) |
Full SWJ Disabled (JTAG-DP + SW-DP)
#define GPIO_Remap_SPI3 ((uint32_t)0x00201000) |
SPI3/I2S3 Alternate Function mapping (only for Connectivity line devices)
#define GPIO_Remap_TIM2ITR1_PTP_SOF ((uint32_t)0x00202000) |
Ethernet PTP output or USB OTG SOF (Start of Frame) connected to TIM2 Internal Trigger 1 for calibration (only for Connectivity line devices)
#define GPIO_Remap_PTP_PPS ((uint32_t)0x00204000) |
Ethernet MAC PPS_PTS output on PB05 (only for Connectivity line devices)
#define GPIO_Remap_TIM15 ((uint32_t)0x80000001) |
TIM15 Alternate Function mapping (only for Value line devices)
#define GPIO_Remap_TIM16 ((uint32_t)0x80000002) |
TIM16 Alternate Function mapping (only for Value line devices)
#define GPIO_Remap_TIM17 ((uint32_t)0x80000004) |
TIM17 Alternate Function mapping (only for Value line devices)
#define GPIO_Remap_CEC ((uint32_t)0x80000008) |
CEC Alternate Function mapping (only for Value line devices)
#define GPIO_Remap_TIM1_DMA ((uint32_t)0x80000010) |
TIM1 DMA requests mapping (only for Value line devices)
#define GPIO_Remap_TIM9 ((uint32_t)0x80000020) |
TIM9 Alternate Function mapping (only for XL-density devices)
#define GPIO_Remap_TIM10 ((uint32_t)0x80000040) |
TIM10 Alternate Function mapping (only for XL-density devices)
#define GPIO_Remap_TIM11 ((uint32_t)0x80000080) |
TIM11 Alternate Function mapping (only for XL-density devices)
#define GPIO_Remap_TIM13 ((uint32_t)0x80000100) |
TIM13 Alternate Function mapping (only for XL-density devices)
#define GPIO_Remap_TIM14 ((uint32_t)0x80000200) |
TIM14 Alternate Function mapping (only for XL-density devices)
#define GPIO_Remap_FSMC_NADV ((uint32_t)0x80000400) |
FSMC_NADV Alternate Function mapping (only for XL-density devices)
#define IS_GPIO_REMAP | ( | REMAP | ) |
(((REMAP) == GPIO_Remap_SPI1) || ((REMAP) == GPIO_Remap_I2C1) || \ ((REMAP) == GPIO_Remap_USART1) || ((REMAP) == GPIO_Remap_USART2) || \ ((REMAP) == GPIO_PartialRemap_USART3) || ((REMAP) == GPIO_FullRemap_USART3) || \ ((REMAP) == GPIO_PartialRemap_TIM1) || ((REMAP) == GPIO_FullRemap_TIM1) || \ ((REMAP) == GPIO_PartialRemap1_TIM2) || ((REMAP) == GPIO_PartialRemap2_TIM2) || \ ((REMAP) == GPIO_FullRemap_TIM2) || ((REMAP) == GPIO_PartialRemap_TIM3) || \ ((REMAP) == GPIO_FullRemap_TIM3) || ((REMAP) == GPIO_Remap_TIM4) || \ ((REMAP) == GPIO_Remap1_CAN1) || ((REMAP) == GPIO_Remap2_CAN1) || \ ((REMAP) == GPIO_Remap_PD01) || ((REMAP) == GPIO_Remap_TIM5CH4_LSI) || \ ((REMAP) == GPIO_Remap_ADC1_ETRGINJ) ||((REMAP) == GPIO_Remap_ADC1_ETRGREG) || \ ((REMAP) == GPIO_Remap_ADC2_ETRGINJ) ||((REMAP) == GPIO_Remap_ADC2_ETRGREG) || \ ((REMAP) == GPIO_Remap_ETH) ||((REMAP) == GPIO_Remap_CAN2) || \ ((REMAP) == GPIO_Remap_SWJ_NoJTRST) || ((REMAP) == GPIO_Remap_SWJ_JTAGDisable) || \ ((REMAP) == GPIO_Remap_SWJ_Disable)|| ((REMAP) == GPIO_Remap_SPI3) || \ ((REMAP) == GPIO_Remap_TIM2ITR1_PTP_SOF) || ((REMAP) == GPIO_Remap_PTP_PPS) || \ ((REMAP) == GPIO_Remap_TIM15) || ((REMAP) == GPIO_Remap_TIM16) || \ ((REMAP) == GPIO_Remap_TIM17) || ((REMAP) == GPIO_Remap_CEC) || \ ((REMAP) == GPIO_Remap_TIM1_DMA) || ((REMAP) == GPIO_Remap_TIM9) || \ ((REMAP) == GPIO_Remap_TIM10) || ((REMAP) == GPIO_Remap_TIM11) || \ ((REMAP) == GPIO_Remap_TIM13) || ((REMAP) == GPIO_Remap_TIM14) || \ ((REMAP) == GPIO_Remap_FSMC_NADV))
Referenced by GPIO_PinRemapConfig().