65 #define SYSCFG_OFFSET (SYSCFG_BASE - PERIPH_BASE)
68 #define MEMRMP_OFFSET SYSCFG_OFFSET
69 #define UFB_MODE_BitNumber ((uint8_t)0x8)
70 #define UFB_MODE_BB (PERIPH_BB_BASE + (MEMRMP_OFFSET * 32) + (UFB_MODE_BitNumber * 4))
75 #define PMC_OFFSET (SYSCFG_OFFSET + 0x04)
76 #define MII_RMII_SEL_BitNumber ((uint8_t)0x17)
77 #define PMC_MII_RMII_SEL_BB (PERIPH_BB_BASE + (PMC_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4))
81 #define CMPCR_OFFSET (SYSCFG_OFFSET + 0x20)
82 #define CMP_PD_BitNumber ((uint8_t)0x00)
83 #define CMPCR_CMP_PD_BB (PERIPH_BB_BASE + (CMPCR_OFFSET * 32) + (CMP_PD_BitNumber * 4))
121 assert_param(IS_SYSCFG_MEMORY_REMAP_CONFING(SYSCFG_MemoryRemap));
123 SYSCFG->MEMRMP = SYSCFG_MemoryRemap;
142 assert_param(IS_FUNCTIONAL_STATE(NewState));
144 *(__IO uint32_t *) UFB_MODE_BB = (uint32_t)NewState;
167 assert_param(IS_EXTI_PORT_SOURCE(EXTI_PortSourceGPIOx));
168 assert_param(IS_EXTI_PIN_SOURCE(EXTI_PinSourcex));
170 tmp = ((uint32_t)0x0F) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03));
171 SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] &= ~tmp;
172 SYSCFG->EXTICR[EXTI_PinSourcex >> 0x02] |= (((uint32_t)EXTI_PortSourceGPIOx) << (0x04 * (EXTI_PinSourcex & (uint8_t)0x03)));
185 assert_param(IS_SYSCFG_ETH_MEDIA_INTERFACE(SYSCFG_ETH_MediaInterface));
187 *(__IO uint32_t *) PMC_MII_RMII_SEL_BB = SYSCFG_ETH_MediaInterface;
203 assert_param(IS_FUNCTIONAL_STATE(NewState));
205 *(__IO uint32_t *) CMPCR_CMP_PD_BB = (uint32_t)NewState;
215 FlagStatus bitstatus = RESET;
217 if ((SYSCFG->CMPCR & SYSCFG_CMPCR_READY ) != (uint32_t)RESET)
This file contains all the functions prototypes for the RCC firmware library.
FlagStatus SYSCFG_GetCompensationCellStatus(void)
Checks whether the I/O Compensation Cell ready flag is set or not.
void SYSCFG_CompensationCellCmd(FunctionalState NewState)
Enables or disables the I/O Compensation Cell.
This file contains all the functions prototypes for the SYSCFG firmware library.
void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap)
Changes the mapping of the specified pin.
void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex)
Selects the GPIO pin used as EXTI Line.
void SYSCFG_DeInit(void)
Deinitializes the Alternate Functions (remap and EXTI configuration) registers to their default reset...
void SYSCFG_MemorySwappingBank(FunctionalState NewState)
Enables or disables the Interal FLASH Bank Swapping.
void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface)
Selects the ETHERNET media interface.
void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
Forces or releases High Speed APB (APB2) peripheral reset.