STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups

SYSCFG driver modules. More...

Modules

 SYSCFG_Exported_Constants
 
 SYSCFG_Private_Functions
 

Macros

#define SYSCFG_OFFSET   (SYSCFG_BASE - PERIPH_BASE)
 
#define PMC_OFFSET   (SYSCFG_OFFSET + 0x04)
 
#define MII_RMII_SEL_BitNumber   ((uint8_t)0x17)
 
#define PMC_MII_RMII_SEL_BB   (PERIPH_BB_BASE + (PMC_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4))
 
#define CMPCR_OFFSET   (SYSCFG_OFFSET + 0x20)
 
#define CMP_PD_BitNumber   ((uint8_t)0x00)
 
#define CMPCR_CMP_PD_BB   (PERIPH_BB_BASE + (CMPCR_OFFSET * 32) + (CMP_PD_BitNumber * 4))
 

Functions

void SYSCFG_DeInit (void)
 Deinitializes the Alternate Functions (remap and EXTI configuration) registers to their default reset values. More...
 
void SYSCFG_MemoryRemapConfig (uint8_t SYSCFG_MemoryRemap)
 Changes the mapping of the specified pin. More...
 
void SYSCFG_EXTILineConfig (uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex)
 Selects the GPIO pin used as EXTI Line. More...
 
void SYSCFG_ETH_MediaInterfaceConfig (uint32_t SYSCFG_ETH_MediaInterface)
 Selects the ETHERNET media interface. More...
 
void SYSCFG_CompensationCellCmd (FunctionalState NewState)
 Enables or disables the I/O Compensation Cell. More...
 
FlagStatus SYSCFG_GetCompensationCellStatus (void)
 Checks whether the I/O Compensation Cell ready flag is set or not. More...
 

Detailed Description

SYSCFG driver modules.

Function Documentation

void SYSCFG_CompensationCellCmd ( FunctionalState  NewState)

Enables or disables the I/O Compensation Cell.

Note
The I/O compensation cell can be used only when the device supply voltage ranges from 2.4 to 3.6 V.
Parameters
NewState,:new state of the I/O Compensation Cell. This parameter can be one of the following values:
  • ENABLE: I/O compensation cell enabled
  • DISABLE: I/O compensation cell power-down mode
Return values
None
void SYSCFG_DeInit ( void  )

Deinitializes the Alternate Functions (remap and EXTI configuration) registers to their default reset values.

Parameters
None
Return values
None
void SYSCFG_ETH_MediaInterfaceConfig ( uint32_t  SYSCFG_ETH_MediaInterface)

Selects the ETHERNET media interface.

Parameters
SYSCFG_ETH_MediaInterface,:specifies the Media Interface mode. This parameter can be one of the following values:
  • SYSCFG_ETH_MediaInterface_MII: MII mode selected
  • SYSCFG_ETH_MediaInterface_RMII: RMII mode selected
Return values
None
void SYSCFG_EXTILineConfig ( uint8_t  EXTI_PortSourceGPIOx,
uint8_t  EXTI_PinSourcex 
)

Selects the GPIO pin used as EXTI Line.

Parameters
EXTI_PortSourceGPIOx: selects the GPIO port to be used as source for EXTI lines where x can be (A..I).
EXTI_PinSourcex,:specifies the EXTI line to be configured. This parameter can be EXTI_PinSourcex where x can be (0..15, except for EXTI_PortSourceGPIOI x can be (0..11).
Return values
None
FlagStatus SYSCFG_GetCompensationCellStatus ( void  )

Checks whether the I/O Compensation Cell ready flag is set or not.

Parameters
None
Return values
Thenew state of the I/O Compensation Cell ready flag (SET or RESET)
void SYSCFG_MemoryRemapConfig ( uint8_t  SYSCFG_MemoryRemap)

Changes the mapping of the specified pin.

Parameters
SYSCFG_Memory,:selects the memory remapping. This parameter can be one of the following values:
  • SYSCFG_MemoryRemap_Flash: Main Flash memory mapped at 0x00000000
  • SYSCFG_MemoryRemap_SystemFlash: System Flash memory mapped at 0x00000000
  • SYSCFG_MemoryRemap_FSMC: FSMC (Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000
  • SYSCFG_MemoryRemap_SRAM: Embedded SRAM (112kB) mapped at 0x00000000
Return values
None