SYSCFG driver modules.
More...
|
#define | SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE) |
|
#define | MEMRMP_OFFSET SYSCFG_OFFSET |
|
#define | UFB_MODE_BitNumber ((uint8_t)0x8) |
|
#define | UFB_MODE_BB (PERIPH_BB_BASE + (MEMRMP_OFFSET * 32) + (UFB_MODE_BitNumber * 4)) |
|
#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)) |
|
SYSCFG driver modules.
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
-
Definition at line 200 of file stm32f4xx_syscfg.c.
void SYSCFG_DeInit |
( |
void |
| ) |
|
Deinitializes the Alternate Functions (remap and EXTI configuration) registers to their default reset values.
- Parameters
-
- Return values
-
Definition at line 100 of file stm32f4xx_syscfg.c.
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
-
Definition at line 183 of file stm32f4xx_syscfg.c.
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..K) for STM32F42xxx/43xxx devices, (A..I) for STM32F405xx/407xx and STM32F415xx/417xx devices or (A, B, C, D and H) for STM32401xx devices. |
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) for STM32F405xx/407xx and STM32F405xx/407xx devices and for EXTI_PortSourceGPIOK x can be (0..7) for STM32F42xxx/43xxx devices. |
- Return values
-
Definition at line 162 of file stm32f4xx_syscfg.c.
FlagStatus SYSCFG_GetCompensationCellStatus |
( |
void |
| ) |
|
Checks whether the I/O Compensation Cell ready flag is set or not.
- Parameters
-
- Return values
-
The | new state of the I/O Compensation Cell ready flag (SET or RESET) |
Definition at line 213 of file stm32f4xx_syscfg.c.
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 for STM32F405xx/407xx and STM32F415xx/417xx devices.
- SYSCFG_MemoryRemap_FMC: FMC (Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000 for STM32F42xxx/43xxx devices.
- SYSCFG_MemoryRemap_SRAM: Embedded SRAM (112kB) mapped at 0x00000000
- SYSCFG_MemoryRemap_SDRAM: FMC (External SDRAM) mapped at 0x00000000 for STM32F42xxx/43xxx devices.
|
- Return values
-
Definition at line 118 of file stm32f4xx_syscfg.c.
void SYSCFG_MemorySwappingBank |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the Interal FLASH Bank Swapping.
- Note
- This function can be used only for STM32F42xxx/43xxx devices.
- Parameters
-
NewState | new state of Interal FLASH Bank swapping. This parameter can be one of the following values:
- ENABLE: Flash Bank2 mapped at 0x08000000 (and aliased @0x00000000) and Flash Bank1 mapped at 0x08100000 (and aliased at 0x00100000)
- DISABLE:(the default state) Flash Bank1 mapped at 0x08000000 (and aliased @0x0000 0000) and Flash Bank2 mapped at 0x08100000 (and aliased at 0x00100000)
|
- Return values
-
Definition at line 139 of file stm32f4xx_syscfg.c.