SYSCFG Initialization and Configuration functions.
More...
SYSCFG Initialization and Configuration functions.
===============================================================================
##### SYSCFG Initialization and Configuration functions #####
===============================================================================
void SYSCFG_BreakConfig |
( |
uint32_t |
SYSCFG_Break | ) |
|
Connect the selected parameter to the break input of TIM15/TIM16/TIM17.
- 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 TIM15/TIM16/TIM17 This parameter can be any combination of the following values:
- SYSCFG_Break_PVD: Connects the PVD event to the Break Input of TIM15/TIM16/TIM17.
- SYSCFG_Break_SRAMParity: Connects the SRAM_PARITY error signal to the Break Input of TIM15/TIM16/TIM17 .
- SYSCFG_Break_Lockup: Connects Lockup output of CortexM4 to the break input of TIM15/TIM16/TIM17.
|
- 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.
-
CLASSB 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 DMA1 requests from channel1 to channel2
- SYSCFG_DMARemap_TIM16: Remap TIM16 DMA1 requests from channel3 to channel4
- SYSCFG_DMARemap_TIM6DAC1Ch1: Remap TIM6/DAC1 channel1 DMA requests from DMA2 channel 3 to DMA1 channel 3
- SYSCFG_DMARemap_TIM7DAC1Ch2: Remap TIM7/DAC1 channel2 DMA requests from DMA2 channel 4 to DMA1 channel 4
- SYSCFG_DMARemap_TIM18DAC2Ch1: Remap TIM18/DAC2 channel1 DMA requests from DMA2 channel 5 to DMA1 channel 5
|
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, E 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
- SYSCFG_I2CFastModePlus_I2C1: Configure fast mode plus driving capability for I2C1 pins
- SYSCFG_I2CFastModePlus_I2C2: Configure fast mode plus driving capability for I2C2 pins
|
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 I2C pin
-
DISABLE: Disable fast mode plus driving capability for selected I2C pin
-
For I2C1, fast mode plus driving capability can be enabled on all selected I2C1 pins using SYSCFG_I2CFastModePlus_I2C1 parameter or independently on each one of the following pins PB6, PB7, PB8 and PB9.
-
For remaining I2C1 pins (PA14, PA15...) fast mode plus driving capability can be enabled only by using SYSCFG_I2CFastModePlus_I2C1 parameter For all I2C2 pins fast mode plus driving capability can be enabled only by using SYSCFG_I2CFastModePlus_I2C2 parameter
- Return values
-
void SYSCFG_ITConfig |
( |
uint32_t |
SYSCFG_IT, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the selected SYSCFG interrupts.
- Parameters
-
SYSCFG_IT,: | specifies the SYSCFG interrupt sources to be enabled or disabled. This parameter can be one of the following values:
- SYSCFG_IT_IXC: Inexact Interrupt
- SYSCFG_IT_IDC: Input denormal Interrupt
- SYSCFG_IT_OFC: Overflow Interrupt
- SYSCFG_IT_UFC: Underflow Interrupt
- SYSCFG_IT_DZC: Divide-by-zero Interrupt
- SYSCFG_IT_IOC: Invalid operation Interrupt
|
NewState,: | new state of the specified SDADC interrupts. This parameter can be: ENABLE or DISABLE. |
- 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
-
void SYSCFG_VBATMonitoringCmd |
( |
FunctionalState |
NewState | ) |
|
Control the VBAT monitoring.
- Parameters
-
NewState,: | new state of the VBAT connection to ADC channel 18. This parameter can be: ENABLE or DISABLE. |
- Note
- ENABLE: Enable VBAT monitoring by connecting internally VBAT to ADC channel 18
-
DISABLE: Disable VBAT monitoring by disconnecting VBAT from ADC channel 18
- Return values
-