STM8L15x Standard Peripherals Drivers
|
SYSCFG configuration. More...
Functions | |
void | SYSCFG_REMAPDeInit (void) |
Deinitializes the Remapping registers to their default reset values. | |
void | SYSCFG_REMAPDMAChannelConfig (REMAP_DMAChannel_TypeDef REMAP_DMAChannel) |
Remaps the DMA Channel to the specific peripheral (ADC or TIM4) | |
void | SYSCFG_REMAPPinConfig (REMAP_Pin_TypeDef REMAP_Pin, FunctionalState NewState) |
Changes the mapping of the specified pins. |
Detailed Description
SYSCFG configuration.
=============================================================================== SYSCFG configuration functions =============================================================================== =================================================================== SYSCFG Driver: how to use it for remapping =================================================================== 1. To remap the alternate function of some peripherals (such as: USART, SPI, TIMs...), use SYSCFG_REMAPPinConfig() 2. To remap the DMA channels of ADC1 and TIM4, use SYSCFG_REMAPDMAChannelConfig()
Function Documentation
void SYSCFG_REMAPDeInit | ( | void | ) |
Deinitializes the Remapping registers to their default reset values.
< Set RMPCR1 to reset value
< Set RMPCR2 to reset value
< Set RMPCR3 to reset value
Definition at line 361 of file stm8l15x_syscfg.c.
References SYSCFG, SYSCFG_RMPCR1_RESET_VALUE, SYSCFG_RMPCR2_RESET_VALUE, and SYSCFG_RMPCR3_RESET_VALUE.
void SYSCFG_REMAPDMAChannelConfig | ( | REMAP_DMAChannel_TypeDef | REMAP_DMAChannel | ) |
Remaps the DMA Channel to the specific peripheral (ADC or TIM4)
Definition at line 463 of file stm8l15x_syscfg.c.
References IS_REMAP_DMACHANNEL, RESET, SYSCFG, SYSCFG_RMPCR1_ADC1DMA_REMAP, and SYSCFG_RMPCR1_TIM4DMA_REMAP.
void SYSCFG_REMAPPinConfig | ( | REMAP_Pin_TypeDef | REMAP_Pin, |
FunctionalState | NewState | ||
) |
Changes the mapping of the specified pins.
Definition at line 404 of file stm8l15x_syscfg.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_REMAP_PIN, and SYSCFG.