Nut/OS  5.0.5
API Reference
GPIO_Private_Functions
Collaboration diagram for GPIO_Private_Functions:

Functions

void GPIO_EventOutputConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource)
 Selects the GPIO pin used as Event output.
void GPIO_EventOutputCmd (FunctionalState NewState)
 Enables or disables the Event Output.
void GPIO_PinRemapConfig (uint32_t GPIO_Remap, FunctionalState NewState)
 Changes the mapping of the specified pin.
void GPIO_EXTILineConfig (uint8_t GPIO_PortSource, uint8_t GPIO_PinSource)
 Selects the GPIO pin used as EXTI Line.
void GPIO_ETH_MediaInterfaceConfig (uint32_t GPIO_ETH_MediaInterface)
 Selects the Ethernet media interface.

Function Documentation

void GPIO_EventOutputConfig ( uint8_t  GPIO_PortSource,
uint8_t  GPIO_PinSource 
)

Selects the GPIO pin used as Event output.

Parameters:
GPIO_PortSource,:selects the GPIO port to be used as source for Event output. This parameter can be GPIO_PortSourceGPIOx where x can be (A..E).
GPIO_PinSource,:specifies the pin for the Event output. This parameter can be GPIO_PinSourcex where x can be (0..15).
Return values:
None

References AFIO, assert_param, EVCR_PORTPINCONFIG_MASK, and IS_GPIO_PIN_SOURCE.

void GPIO_EventOutputCmd ( FunctionalState  NewState)

Enables or disables the Event Output.

Parameters:
NewState,:new state of the Event output. This parameter can be: ENABLE or DISABLE.
Return values:
None

References __IO, assert_param, EVCR_EVOE_BB, and IS_FUNCTIONAL_STATE.

void GPIO_PinRemapConfig ( uint32_t  GPIO_Remap,
FunctionalState  NewState 
)

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:
None

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.

void GPIO_EXTILineConfig ( uint8_t  GPIO_PortSource,
uint8_t  GPIO_PinSource 
)

Selects the GPIO pin used as EXTI Line.

Parameters:
GPIO_PortSource,:selects the GPIO port to be used as source for EXTI lines. This parameter can be GPIO_PortSourceGPIOx where x can be (A..G).
GPIO_PinSource,:specifies the EXTI line to be configured. This parameter can be GPIO_PinSourcex where x can be (0..15).
Return values:
None

References AFIO, assert_param, and IS_GPIO_PIN_SOURCE.

void GPIO_ETH_MediaInterfaceConfig ( uint32_t  GPIO_ETH_MediaInterface)

Selects the Ethernet media interface.

Note:
This function applies only to STM32 Connectivity line devices.
Parameters:
GPIO_ETH_MediaInterface,:specifies the Media Interface mode. This parameter can be one of the following values:
  • GPIO_ETH_MediaInterface_MII: MII mode
  • GPIO_ETH_MediaInterface_RMII: RMII mode
Return values:
None

References __IO, assert_param, IS_GPIO_ETH_MEDIA_INTERFACE, and MAPR_MII_RMII_SEL_BB.

Referenced by EmacInit().