Changes the mapping of the specified pin.
- Parameters:
-
GPIO_Remap,: | selects the pin to remap. This parameter can be one of the following values:
- GPIO_Remap_SPI1
- GPIO_Remap_I2C1
- GPIO_Remap_USART1
- GPIO_Remap_USART2
- GPIO_PartialRemap_USART3
- GPIO_FullRemap_USART3
- GPIO_PartialRemap_TIM1
- GPIO_FullRemap_TIM1
- GPIO_PartialRemap1_TIM2
- GPIO_PartialRemap2_TIM2
- GPIO_FullRemap_TIM2
- GPIO_PartialRemap_TIM3
- GPIO_FullRemap_TIM3
- GPIO_Remap_TIM4
- GPIO_Remap1_CAN1
- GPIO_Remap2_CAN1
- GPIO_Remap_PD01
- GPIO_Remap_TIM5CH4_LSI
- GPIO_Remap_ADC1_ETRGINJ
- GPIO_Remap_ADC1_ETRGREG
- GPIO_Remap_ADC2_ETRGINJ
- GPIO_Remap_ADC2_ETRGREG
- GPIO_Remap_ETH
- GPIO_Remap_CAN2
- GPIO_Remap_SWJ_NoJTRST
- GPIO_Remap_SWJ_JTAGDisable
- GPIO_Remap_SWJ_Disable
- GPIO_Remap_SPI3
- GPIO_Remap_TIM2ITR1_PTP_SOF
- GPIO_Remap_PTP_PPS
- GPIO_Remap_TIM15
- GPIO_Remap_TIM16
- GPIO_Remap_TIM17
- GPIO_Remap_CEC
- GPIO_Remap_TIM1_DMA
- GPIO_Remap_TIM9
- GPIO_Remap_TIM10
- GPIO_Remap_TIM11
- GPIO_Remap_TIM13
- GPIO_Remap_TIM14
- GPIO_Remap_FSMC_NADV
|
- Note:
- If the GPIO_Remap_TIM2ITR1_PTP_SOF is enabled the TIM2 ITR1 is connected to Ethernet PTP output. When Reset TIM2 ITR1 is connected to USB OTG SOF output.
- Parameters:
-
NewState,: | new state of the port pin remapping. This parameter can be: ENABLE or DISABLE. |
- Return values:
-
References AFIO, assert_param, DBGAFR_LOCATION_MASK, DBGAFR_NUMBITS_MASK, DBGAFR_POSITION_MASK, DBGAFR_SWJCFG_MASK, DISABLE, IS_FUNCTIONAL_STATE, IS_GPIO_REMAP, and LSB_MASK.