Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
SYSCFG Initialization and Configuration functions
[SYSCFG_Private_Functions]
  SYSCFG Initialization and Configuration functions. More...
| Functions | |
| void | SYSCFG_DeInit (void) | 
| Deinitializes the SYSCFG registers to their default reset values. | |
| void | SYSCFG_MemoryRemapConfig (uint32_t SYSCFG_MemoryRemap) | 
| Configures the memory mapping at address 0x00000000. | |
| void | SYSCFG_DMAChannelRemapConfig (uint32_t SYSCFG_DMARemap, FunctionalState NewState) | 
| Configures the DMA channels remapping. | |
| void | SYSCFG_TriggerRemapConfig (uint32_t SYSCFG_TriggerRemap, FunctionalState NewState) | 
| Configures the remapping capabilities of DAC/TIM triggers. | |
| void | SYSCFG_EncoderRemapConfig (uint32_t SYSCFG_EncoderRemap) | 
| Configures the remapping capabilities of encoder mode. | |
| void | SYSCFG_USBInterruptLineRemapCmd (FunctionalState NewState) | 
| Remaps the USB interrupt lines. | |
| void | SYSCFG_I2CFastModePlusConfig (uint32_t SYSCFG_I2CFastModePlus, FunctionalState NewState) | 
| Configures the I2C fast mode plus driving capability. | |
| void | SYSCFG_ITConfig (uint32_t SYSCFG_IT, FunctionalState NewState) | 
| Enables or disables the selected SYSCFG interrupts. | |
| void | SYSCFG_EXTILineConfig (uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex) | 
| Selects the GPIO pin used as EXTI Line. | |
| void | SYSCFG_BreakConfig (uint32_t SYSCFG_Break) | 
| Connects the selected parameter to the break input of TIM1. | |
| void | SYSCFG_BypassParityCheckDisable (void) | 
| Disables the parity check on RAM. | |
| void | SYSCFG_ADCTriggerRemapConfig (uint32_t SYSCFG_ADCTriggerRemap, FunctionalState NewState) | 
| Configures the remapping capabilities of DAC/TIM triggers. | |
| void | SYSCFG_SRAMWRPEnable (uint32_t SYSCFG_SRAMWRP) | 
| Enables the ICODE SRAM write protection. | |
| FlagStatus | SYSCFG_GetFlagStatus (uint32_t SYSCFG_Flag) | 
| Checks whether the specified SYSCFG flag is set or not. | |
| void | SYSCFG_ClearFlag (uint32_t SYSCFG_Flag) | 
| Clears the selected SYSCFG flag. | |
Detailed Description
SYSCFG Initialization and Configuration functions.
 ===============================================================================
         ##### SYSCFG Initialization and Configuration functions #####
 ===============================================================================
Function Documentation
| void SYSCFG_ADCTriggerRemapConfig | ( | uint32_t | SYSCFG_ADCTriggerRemap, | 
| FunctionalState | NewState | ||
| ) | 
Configures the remapping capabilities of DAC/TIM triggers.
- Parameters:
- 
  SYSCFG_ADCTriggerRemap,: selects the ADC trigger to be remapped. This parameter can be one of the following values: - REMAPADCTRIGGER_ADC12_EXT2: Input trigger of ADC12 regular channel EXT2
- REMAPADCTRIGGER_ADC12_EXT3: Input trigger of ADC12 regular channel EXT3
- REMAPADCTRIGGER_ADC12_EXT5: Input trigger of ADC12 regular channel EXT5
- REMAPADCTRIGGER_ADC12_EXT13: Input trigger of ADC12 regular channel EXT13
- REMAPADCTRIGGER_ADC12_EXT15: Input trigger of ADC12 regular channel EXT15
- REMAPADCTRIGGER_ADC12_JEXT3: Input trigger of ADC12 injected channel JEXT3
- REMAPADCTRIGGER_ADC12_JEXT6: Input trigger of ADC12 injected channel JEXT6
- REMAPADCTRIGGER_ADC12_JEXT13: Input trigger of ADC12 injected channel JEXT16
- REMAPADCTRIGGER_ADC34_EXT5: Input trigger of ADC34 regular channel EXT5
- REMAPADCTRIGGER_ADC34_EXT6: Input trigger of ADC34 regular channel EXT6
- REMAPADCTRIGGER_ADC34_EXT15: Input trigger of ADC34 regular channel EXT15
- REMAPADCTRIGGER_ADC34_JEXT5: Input trigger of ADC34 injected channel JEXT5
- REMAPADCTRIGGER_ADC34_JEXT11: Input trigger of ADC34 injected channel JEXT11
- REMAPADCTRIGGER_ADC34_JEXT14: Input trigger of ADC34 injected channel JEXT14
 NewState,: new state of the trigger mapping. 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:
- 
  None 
Definition at line 475 of file stm32f30x_syscfg.c.
| void SYSCFG_BreakConfig | ( | uint32_t | SYSCFG_Break ) | 
Connects 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: PVD interrupt is connected to the break input of TIM1.
- SYSCFG_Break_SRAMParity: SRAM Parity error is connected to the break input of TIM1.
- SYSCFG_Break_HardFault: Lockup output of CortexM4 is connected to the break input of TIM1.
 
- Return values:
- 
  None 
Definition at line 430 of file stm32f30x_syscfg.c.
| void SYSCFG_BypassParityCheckDisable | ( | void | ) | 
Disables the parity check on RAM.
- Note:
- Disabling the parity check on RAM locks the configuration bit. To re-enable the parity check on RAM perform a system reset.
- Parameters:
- 
  None 
- Return values:
- 
  None 
Definition at line 445 of file stm32f30x_syscfg.c.
| void SYSCFG_ClearFlag | ( | uint32_t | SYSCFG_Flag ) | 
Clears 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:
- 
  None 
Definition at line 545 of file stm32f30x_syscfg.c.
| void SYSCFG_DeInit | ( | void | ) | 
Deinitializes the SYSCFG registers to their default reset values.
- Parameters:
- 
  None 
- Return values:
- 
  None 
- Note:
- MEM_MODE bits are not affected by APB reset. MEM_MODE bits took the value from the user option bytes.
Definition at line 108 of file stm32f30x_syscfg.c.
| void SYSCFG_DMAChannelRemapConfig | ( | uint32_t | SYSCFG_DMARemap, | 
| FunctionalState | NewState | ||
| ) | 
Configures 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 DMA1 channel1 to channel2
- SYSCFG_DMARemap_TIM16: Remap TIM16 DMA requests from DMA1 channel3 to channel4
- SYSCFG_DMARemap_TIM6DAC1Ch1: Remap TIM6/DAC1 DMA requests from DMA2 channel 3 to DMA1 channel 3
- SYSCFG_DMARemap_TIM7DAC1Ch2: Remap TIM7/DAC2 DMA requests from DMA2 channel 4 to DMA1 channel 4
- SYSCFG_DMARemap_ADC2ADC4: Remap ADC2 and ADC4 DMA requests from DMA2 channel1/channel3 to channel3/channel4
- SYSCFG_DMARemap_DAC2Ch1: Remap DAC2 DMA requests to DMA1 channel5
- SYSCFG_DMARemapCh2_SPI1_RX: Remap SPI1 RX DMA1 CH2 requests
- SYSCFG_DMARemapCh4_SPI1_RX: Remap SPI1 RX DMA CH4 requests
- SYSCFG_DMARemapCh6_SPI1_RX: Remap SPI1 RX DMA CH6 requests
- SYSCFG_DMARemapCh3_SPI1_TX: Remap SPI1 TX DMA CH2 requests
- SYSCFG_DMARemapCh5_SPI1_TX: Remap SPI1 TX DMA CH5 requests
- SYSCFG_DMARemapCh7_SPI1_TX: Remap SPI1 TX DMA CH7 requests
- SYSCFG_DMARemapCh7_I2C1_RX: Remap I2C1 RX DMA CH7 requests
- SYSCFG_DMARemapCh3_I2C1_RX: Remap I2C1 RX DMA CH3 requests
- SYSCFG_DMARemapCh5_I2C1_RX: Remap I2C1 RX DMA CH5 requests
- SYSCFG_DMARemapCh6_I2C1_TX: Remap I2C1 TX DMA CH6 requests
- SYSCFG_DMARemapCh2_I2C1_TX: Remap I2C1 TX DMA CH2 requests
- SYSCFG_DMARemapCh4_I2C1_TX: Remap I2C1 TX DMA CH4 requests
- SYSCFG_DMARemapCh4_ADC2: Remap ADC2 DMA1 Ch4 requests
- SYSCFG_DMARemapCh2_ADC2: Remap ADC2 DMA1 Ch2 requests
 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 DMA1 channel 2 use SYSCFG_DMAChannelRemapConfig(SYSCFG_DMARemap_TIM17, Disable) to map TIM17 DMA requests to DMA1 channel 1 (default mapping)
- Return values:
- 
  None 
Definition at line 195 of file stm32f30x_syscfg.c.
| void SYSCFG_EncoderRemapConfig | ( | uint32_t | SYSCFG_EncoderRemap ) | 
Configures the remapping capabilities of encoder mode.
@ note This feature implement the so-called M/T method for measuring speed and position using quadrature encoders.
- Parameters:
- 
  SYSCFG_EncoderRemap,: selects the remap option for encoder mode. This parameter can be one of the following values: - SYSCFG_EncoderRemap_No: No remap
- SYSCFG_EncoderRemap_TIM2: Timer 2 IC1 and IC2 connected to TIM15 IC1 and IC2
- SYSCFG_EncoderRemap_TIM3: Timer 3 IC1 and IC2 connected to TIM15 IC1 and IC2
- SYSCFG_EncoderRemap_TIM4: Timer 4 IC1 and IC2 connected to TIM15 IC1 and IC2
 
- Return values:
- 
  None 
Definition at line 289 of file stm32f30x_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, B, C, D, E, F, G, H). EXTI_PinSourcex,: specifies the EXTI line to be configured. This parameter can be EXTI_PinSourcex where x can be (0..15) 
- Return values:
- 
  None 
Definition at line 406 of file stm32f30x_syscfg.c.
| 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). 
Definition at line 516 of file stm32f30x_syscfg.c.
| void SYSCFG_I2CFastModePlusConfig | ( | uint32_t | SYSCFG_I2CFastModePlus, | 
| FunctionalState | NewState | ||
| ) | 
Configures 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
- SYSCFG_I2CFastModePlus_I2C3: Configure fast mode plus driving capability for I2C3 pins
 NewState,: new state of the DMA channel remapping. This parameter can be: - ENABLE: Enable fast mode plus driving capability for selected I2C pin
- DISABLE: Disable fast mode plus driving capability for selected I2C pin
 
- Note:
- 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:
- 
  None 
Definition at line 348 of file stm32f30x_syscfg.c.
| 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 SYSCFG interrupts. This parameter can be: ENABLE or DISABLE. 
- Return values:
- 
  None 
Definition at line 380 of file stm32f30x_syscfg.c.
| 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
- SYSCFG_MemoryRemap_FMC: External memory through FMC
 
- Return values:
- 
  None 
Definition at line 139 of file stm32f30x_syscfg.c.
| void SYSCFG_SRAMWRPEnable | ( | uint32_t | SYSCFG_SRAMWRP ) | 
Enables the ICODE SRAM write protection.
- Note:
- Enabling the ICODE SRAM write protection locks the configuration bit. To disable the ICODE SRAM write protection perform a system reset.
- Parameters:
- 
  None 
- Return values:
- 
  None 
Definition at line 500 of file stm32f30x_syscfg.c.
| void SYSCFG_TriggerRemapConfig | ( | uint32_t | SYSCFG_TriggerRemap, | 
| FunctionalState | NewState | ||
| ) | 
Configures the remapping capabilities of DAC/TIM triggers.
- Parameters:
- 
  SYSCFG_TriggerRemap,: selects the trigger to be remapped. This parameter can be one of the following values: - SYSCFG_TriggerRemap_DACTIM3: Remap DAC trigger from TIM8 to TIM3
- SYSCFG_TriggerRemap_TIM1TIM17: Remap TIM1 ITR3 from TIM4 TRGO to TIM17 OC
- SYSCFG_TriggerRemap_DACHRTIM1_TRIG1: Remap DAC trigger to HRTIM1 TRIG1
- SYSCFG_TriggerRemap_DACHRTIM1_TRIG2: Remap DAC trigger to HRTIM1 TRIG2
 NewState,: new state of the trigger mapping. 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:
- 
  None 
Definition at line 243 of file stm32f30x_syscfg.c.
| void SYSCFG_USBInterruptLineRemapCmd | ( | FunctionalState | NewState ) | 
Remaps the USB interrupt lines.
- Parameters:
- 
  NewState,: new state of the mapping of USB interrupt lines. This parameter can be: ENABLE,: Remap the USB interrupt line as following: - USB Device High Priority (USB_HP) interrupt mapped to line 74.
- USB Device Low Priority (USB_LP) interrupt mapped to line 75.
- USB Wakeup Interrupt (USB_WKUP) interrupt mapped to line 76.
 DISABLE,: Use the default USB interrupt line: - USB Device High Priority (USB_HP) interrupt mapped to line 19.
- USB Device Low Priority (USB_LP) interrupt mapped to line 20.
- USB Wakeup Interrupt (USB_WKUP) interrupt mapped to line 42.
 
- Return values:
- 
  None 
Definition at line 315 of file stm32f30x_syscfg.c.
Generated on Tue Jul 12 2022 17:34:46 by
 1.7.2
 1.7.2