63 #define CFGR1_CLEAR_MASK ((uint32_t)0x7C000000) 66 #define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE) 70 #define CFGR1_OFFSET (SYSCFG_OFFSET + 0x00) 71 #define USBITRMP_BitNumber 0x05 72 #define CFGR1_USBITRMP_BB (PERIPH_BB_BASE + (CFGR1_OFFSET * 32) + (USBITRMP_BitNumber * 4)) 76 #define CFGR2_OFFSET (SYSCFG_OFFSET + 0x18) 77 #define BYPADDRPAR_BitNumber 0x04 78 #define CFGR1_BYPADDRPAR_BB (PERIPH_BB_BASE + (CFGR2_OFFSET * 32) + (BYPADDRPAR_BitNumber * 4)) 111 SYSCFG->CFGR1 &= SYSCFG_CFGR1_MEM_MODE;
113 SYSCFG->CFGR1 |= 0x7C000000;
138 uint32_t tmpcfgr1 = 0;
147 tmpcfgr1 &= (uint32_t) (~SYSCFG_CFGR1_MEM_MODE);
150 tmpcfgr1 |= (uint32_t) SYSCFG_MemoryRemap;
198 if ((SYSCFG_DMARemap & 0x80000000)!= 0x80000000)
203 SYSCFG->CFGR1 |= (uint32_t)SYSCFG_DMARemap;
208 SYSCFG->CFGR1 &= (uint32_t)(~SYSCFG_DMARemap);
216 SYSCFG->CFGR3 |= (uint32_t)SYSCFG_DMARemap;
221 SYSCFG->CFGR3 &= (uint32_t)(~SYSCFG_DMARemap);
246 if ((SYSCFG_TriggerRemap & 0x80000000)!= 0x80000000)
251 SYSCFG->CFGR1 |= (uint32_t)SYSCFG_TriggerRemap;
256 SYSCFG->CFGR1 &= (uint32_t)(~SYSCFG_TriggerRemap);
264 SYSCFG->CFGR3 |= (uint32_t)SYSCFG_TriggerRemap;
269 SYSCFG->CFGR3 &= (uint32_t)(~SYSCFG_TriggerRemap);
292 SYSCFG->CFGR1 &= (uint32_t)(~SYSCFG_CFGR1_ENCODER_MODE);
295 SYSCFG->CFGR1 |= (uint32_t)(SYSCFG_EncoderRemap);
353 SYSCFG->CFGR1 |= (uint32_t)SYSCFG_I2CFastModePlus;
358 SYSCFG->CFGR1 &= (uint32_t)(~SYSCFG_I2CFastModePlus);
385 SYSCFG->CFGR1 |= SYSCFG_IT;
390 SYSCFG->CFGR1 &= ((uint32_t)~SYSCFG_IT);
410 tmp = ((uint32_t)0x0F) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03));
411 SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] &= ~tmp;
412 SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] |= (((uint32_t)EXTI_PortSourceGPIOx) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03)));
431 SYSCFG->CFGR2 |= (uint32_t) SYSCFG_Break;
460 SYSCFG->RCR |= (uint32_t)SYSCFG_SRAMWRP;
471 # pragma GCC diagnostic push 472 # pragma GCC diagnostic ignored "-Wunused-parameter" 482 if ((
SYSCFG->CFGR2 & SYSCFG_CFGR2_SRAM_PE) != (uint32_t)
RESET)
496 # pragma GCC diagnostic pop 511 SYSCFG->CFGR2 |= (uint32_t) SYSCFG_Flag;
FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag)
Checks whether the specified SYSCFG flag is set or not.
void SYSCFG_ITConfig(uint32_t SYSCFG_IT, FunctionalState NewState)
Enables or disables the selected SYSCFG interrupts.
void SYSCFG_I2CFastModePlusConfig(uint32_t SYSCFG_I2CFastModePlus, FunctionalState NewState)
Configures the I2C fast mode plus driving capability.
#define IS_SYSCFG_PAGE(PAGE)
#define IS_EXTI_PIN_SOURCE(PINSOURCE)
void assert_param(int val)
void SYSCFG_EncoderRemapConfig(uint32_t SYSCFG_EncoderRemap)
Configures the remapping capabilities of encoder mode. @ note This feature implement the so-called M/...
void SYSCFG_BreakConfig(uint32_t SYSCFG_Break)
Connects the selected parameter to the break input of TIM1.
#define IS_SYSCFG_DMA_REMAP(REMAP)
void SYSCFG_BypassParityCheckDisable(void)
Disables the parity check on RAM.
#define CFGR1_BYPADDRPAR_BB
void SYSCFG_DeInit(void)
Deinitializes the SYSCFG registers to their default reset values.
#define IS_FUNCTIONAL_STATE(STATE)
#define IS_SYSCFG_ENCODER_REMAP(REMAP)
#define IS_SYSCFG_TRIGGER_REMAP(REMAP)
void SYSCFG_MemoryRemapConfig(uint32_t SYSCFG_MemoryRemap)
Configures the memory mapping at address 0x00000000.
void SYSCFG_ClearFlag(uint32_t SYSCFG_Flag)
Clears the selected SYSCFG flag.
#define IS_EXTI_PORT_SOURCE(PORTSOURCE)
This file contains all the functions prototypes for the SYSCFG firmware library.
#define IS_SYSCFG_LOCK_CONFIG(CONFIG)
#define IS_SYSCFG_I2C_FMP(PIN)
void SYSCFG_SRAMWRPEnable(uint32_t SYSCFG_SRAMWRP)
Enables the ICODE SRAM write protection.
#define IS_SYSCFG_MEMORY_REMAP(REMAP)
#define CFGR1_USBITRMP_BB
void SYSCFG_TriggerRemapConfig(uint32_t SYSCFG_TriggerRemap, FunctionalState NewState)
Configures the remapping capabilities of DAC/TIM triggers.
#define IS_SYSCFG_FLAG(FLAG)
void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex)
Selects the GPIO pin used as EXTI Line.
void SYSCFG_USBInterruptLineRemapCmd(FunctionalState NewState)
Remaps the USB interrupt lines.
void SYSCFG_DMAChannelRemapConfig(uint32_t SYSCFG_DMARemap, FunctionalState NewState)
Configures the DMA channels remapping.