stm32f4xx_syscfg.h
Go to the documentation of this file.
1 
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F4xx_SYSCFG_H
31 #define __STM32F4xx_SYSCFG_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
39 
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
50 
58 #define EXTI_PortSourceGPIOA ((uint8_t)0x00)
59 #define EXTI_PortSourceGPIOB ((uint8_t)0x01)
60 #define EXTI_PortSourceGPIOC ((uint8_t)0x02)
61 #define EXTI_PortSourceGPIOD ((uint8_t)0x03)
62 #define EXTI_PortSourceGPIOE ((uint8_t)0x04)
63 #define EXTI_PortSourceGPIOF ((uint8_t)0x05)
64 #define EXTI_PortSourceGPIOG ((uint8_t)0x06)
65 #define EXTI_PortSourceGPIOH ((uint8_t)0x07)
66 #define EXTI_PortSourceGPIOI ((uint8_t)0x08)
67 
68 #define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \
69  ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \
70  ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \
71  ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \
72  ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \
73  ((PORTSOURCE) == EXTI_PortSourceGPIOF) || \
74  ((PORTSOURCE) == EXTI_PortSourceGPIOG) || \
75  ((PORTSOURCE) == EXTI_PortSourceGPIOH) || \
76  ((PORTSOURCE) == EXTI_PortSourceGPIOI))
77 
86 #define EXTI_PinSource0 ((uint8_t)0x00)
87 #define EXTI_PinSource1 ((uint8_t)0x01)
88 #define EXTI_PinSource2 ((uint8_t)0x02)
89 #define EXTI_PinSource3 ((uint8_t)0x03)
90 #define EXTI_PinSource4 ((uint8_t)0x04)
91 #define EXTI_PinSource5 ((uint8_t)0x05)
92 #define EXTI_PinSource6 ((uint8_t)0x06)
93 #define EXTI_PinSource7 ((uint8_t)0x07)
94 #define EXTI_PinSource8 ((uint8_t)0x08)
95 #define EXTI_PinSource9 ((uint8_t)0x09)
96 #define EXTI_PinSource10 ((uint8_t)0x0A)
97 #define EXTI_PinSource11 ((uint8_t)0x0B)
98 #define EXTI_PinSource12 ((uint8_t)0x0C)
99 #define EXTI_PinSource13 ((uint8_t)0x0D)
100 #define EXTI_PinSource14 ((uint8_t)0x0E)
101 #define EXTI_PinSource15 ((uint8_t)0x0F)
102 #define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0) || \
103  ((PINSOURCE) == EXTI_PinSource1) || \
104  ((PINSOURCE) == EXTI_PinSource2) || \
105  ((PINSOURCE) == EXTI_PinSource3) || \
106  ((PINSOURCE) == EXTI_PinSource4) || \
107  ((PINSOURCE) == EXTI_PinSource5) || \
108  ((PINSOURCE) == EXTI_PinSource6) || \
109  ((PINSOURCE) == EXTI_PinSource7) || \
110  ((PINSOURCE) == EXTI_PinSource8) || \
111  ((PINSOURCE) == EXTI_PinSource9) || \
112  ((PINSOURCE) == EXTI_PinSource10) || \
113  ((PINSOURCE) == EXTI_PinSource11) || \
114  ((PINSOURCE) == EXTI_PinSource12) || \
115  ((PINSOURCE) == EXTI_PinSource13) || \
116  ((PINSOURCE) == EXTI_PinSource14) || \
117  ((PINSOURCE) == EXTI_PinSource15))
118 
126 #define SYSCFG_MemoryRemap_Flash ((uint8_t)0x00)
127 #define SYSCFG_MemoryRemap_SystemFlash ((uint8_t)0x01)
128 #define SYSCFG_MemoryRemap_SRAM ((uint8_t)0x03)
129 #define SYSCFG_MemoryRemap_FSMC ((uint8_t)0x02)
130 
131 #define IS_SYSCFG_MEMORY_REMAP_CONFING(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash) || \
132  ((REMAP) == SYSCFG_MemoryRemap_SystemFlash) || \
133  ((REMAP) == SYSCFG_MemoryRemap_SRAM) || \
134  ((REMAP) == SYSCFG_MemoryRemap_FSMC))
135 
144 #define SYSCFG_ETH_MediaInterface_MII ((uint32_t)0x00000000)
145 #define SYSCFG_ETH_MediaInterface_RMII ((uint32_t)0x00000001)
146 
147 #define IS_SYSCFG_ETH_MEDIA_INTERFACE(INTERFACE) (((INTERFACE) == SYSCFG_ETH_MediaInterface_MII) || \
148  ((INTERFACE) == SYSCFG_ETH_MediaInterface_RMII))
149 
157 /* Exported macro ------------------------------------------------------------*/
158 /* Exported functions --------------------------------------------------------*/
159 
160 void SYSCFG_DeInit(void);
161 void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap);
162 void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex);
163 void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface);
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 #endif /*__STM32F4xx_SYSCFG_H */
172 
181 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
FlagStatus
Definition: stm32f4xx.h:706
FunctionalState
Definition: stm32f4xx.h:708
void SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap)
Changes the mapping of the specified pin.
CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...
void SYSCFG_CompensationCellCmd(FunctionalState NewState)
Enables or disables the I/O Compensation Cell.
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...
FlagStatus SYSCFG_GetCompensationCellStatus(void)
Checks whether the I/O Compensation Cell ready flag is set or not.
void SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface)
Selects the ETHERNET media interface.


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:19