SYSCFG driver modules.
More...
SYSCFG driver modules.
void SYSCFG_BreakConfig |
( |
uint32_t |
SYSCFG_Break | ) |
|
Connect the selected parameter to the break input of TIM1.
- Note
- The selected configuration is locked and can be unlocked by system reset
- Parameters
-
SYSCFG_Break,: | selects the configuration to be connected to break input of TIM1 This parameter can be any combination of the following values:
- SYSCFG_Break_PVD: Connects the PVD event to the Break Input of TIM1.
- SYSCFG_Break_SRAMParity: Connects the SRAM_PARITY error signal to the Break Input of TIM1 .
- SYSCFG_Break_Lockup: Connects Lockup output of CortexM0 to the break input of TIM1.
|
- Return values
-
void SYSCFG_ClearFlag |
( |
uint32_t |
SYSCFG_Flag | ) |
|
Clear the selected SYSCFG flag.
- Parameters
-
SYSCFG_Flag,: | selects the flag to be cleared. This parameter can be any combination of the following values:
- SYSCFG_FLAG_PE: SRAM parity error flag.
|
- Return values
-
void SYSCFG_DeInit |
( |
void |
| ) |
|
Deinitializes the SYSCFG registers to their default reset values.
- Parameters
-
- Return values
-
- Note
- MEM_MODE bits are not affected by APB reset.
-
MEM_MODE bits took the value from the user option bytes.
-
CFGR2 register is not affected by APB reset.
-
CLABBB configuration bits are locked when set.
-
To unlock the configuration, perform a system reset.
void SYSCFG_DMAChannelRemapConfig |
( |
uint32_t |
SYSCFG_DMARemap, |
|
|
FunctionalState |
NewState |
|
) |
| |
Configure the DMA channels remapping.
- Parameters
-
SYSCFG_DMARemap,: | selects the DMA channels remap. This parameter can be one of the following values:
- SYSCFG_DMARemap_TIM17: Remap TIM17 DMA requests from channel1 to channel2
- SYSCFG_DMARemap_TIM16: Remap TIM16 DMA requests from channel3 to channel4
- SYSCFG_DMARemap_USART1Rx: Remap USART1 Rx DMA requests from channel3 to channel5
- SYSCFG_DMARemap_USART1Tx: Remap USART1 Tx DMA requests from channel2 to channel4
- SYSCFG_DMARemap_ADC1: Remap ADC1 DMA requests from channel1 to channel2
|
NewState,: | new state of the DMA channel remapping. This parameter can be: ENABLE or DISABLE. |
- Note
- When enabled, DMA channel of the selected peripheral is remapped
-
When disabled, Default DMA channel is mapped to the selected peripheral
-
By default TIM17 DMA requests is mapped to channel 1, use SYSCFG_DMAChannelRemapConfig(SYSCFG_DMARemap_TIM17, Enable) to remap TIM17 DMA requests to channel 2 and use SYSCFG_DMAChannelRemapConfig(SYSCFG_DMARemap_TIM17, Disable) to map TIM17 DMA requests to channel 1 (default mapping)
- Return values
-
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, B, C, D or F). |
EXTI_PinSourcex,: | specifies the EXTI line to be configured. This parameter can be EXTI_PinSourcex where x can be (0..15) |
- Return values
-
FlagStatus SYSCFG_GetFlagStatus |
( |
uint32_t |
SYSCFG_Flag | ) |
|
Checks whether the specified SYSCFG flag is set or not.
- Parameters
-
SYSCFG_Flag,: | specifies the SYSCFG flag to check. This parameter can be one of the following values:
- SYSCFG_FLAG_PE: SRAM parity error flag.
|
- Return values
-
The | new state of SYSCFG_Flag (SET or RESET). |
void SYSCFG_I2CFastModePlusConfig |
( |
uint32_t |
SYSCFG_I2CFastModePlus, |
|
|
FunctionalState |
NewState |
|
) |
| |
Configure the I2C fast mode plus driving capability.
- Parameters
-
SYSCFG_I2CFastModePlus,: | selects the pin. This parameter can be one of the following values:
- SYSCFG_I2CFastModePlus_PB6: Configure fast mode plus driving capability for PB6
- SYSCFG_I2CFastModePlus_PB7: Configure fast mode plus driving capability for PB7
- SYSCFG_I2CFastModePlus_PB8: Configure fast mode plus driving capability for PB8
- SYSCFG_I2CFastModePlus_PB9: Configure fast mode plus driving capability for PB9
|
NewState,: | new state of the DMA channel remapping. This parameter can be: ENABLE or DISABLE. |
- Note
- ENABLE: Enable fast mode plus driving capability for selected pin
-
DISABLE: Disable fast mode plus driving capability for selected pin
- Return values
-
void SYSCFG_MemoryRemapConfig |
( |
uint32_t |
SYSCFG_MemoryRemap | ) |
|
Configures the memory mapping at address 0x00000000.
- Parameters
-
SYSCFG_MemoryRemap,: | selects the memory remapping. This parameter can be one of the following values:
- SYSCFG_MemoryRemap_Flash: Main Flash memory mapped at 0x00000000
- SYSCFG_MemoryRemap_SystemMemory: System Flash memory mapped at 0x00000000
- SYSCFG_MemoryRemap_SRAM: Embedded SRAM mapped at 0x00000000
|
- Return values
-