STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
stm32f7xx.h
Go to the documentation of this file.
1 
56 #ifndef __STM32F7xx_H
57 #define __STM32F7xx_H
58 
59 #ifdef __cplusplus
60  extern "C" {
61 #endif /* __cplusplus */
62 
70 #if !defined (STM32F7)
71 #define STM32F7
72 #endif /* STM32F7 */
73 
74 /* Uncomment the line below according to the target STM32 device used in your
75  application
76  */
77 #if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F767xx) && \
78  !defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx)
79  /* #define STM32F756xx */
81  /* #define STM32F746xx */
83  /* #define STM32F745xx */
84  /* #define STM32F765xx */
86  /* #define STM32F767xx */
88  /* #define STM32F769xx */
90  /* #define STM32F777xx */
91  /* #define STM32F779xx */
92 #endif
93 
94 /* Tip: To avoid modifying this file each time you need to switch between these
95  devices, you can define the device in your toolchain compiler preprocessor.
96  */
97 
98 #if !defined (USE_HAL_DRIVER)
99 
104  /*#define USE_HAL_DRIVER */
105 #endif /* USE_HAL_DRIVER */
106 
110 #define __STM32F7_CMSIS_VERSION_MAIN (0x01)
111 #define __STM32F7_CMSIS_VERSION_SUB1 (0x01)
112 #define __STM32F7_CMSIS_VERSION_SUB2 (0x00)
113 #define __STM32F7_CMSIS_VERSION_RC (0x00)
114 #define __STM32F7_CMSIS_VERSION ((__STM32F7_CMSIS_VERSION_MAIN << 24)\
115  |(__STM32F7_CMSIS_VERSION_SUB1 << 16)\
116  |(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\
117  |(__STM32F7_CMSIS_VERSION))
118 
125 #if defined(STM32F756xx)
126  #include "stm32f756xx.h"
127 #elif defined(STM32F746xx)
128  #include "stm32f746xx.h"
129 #elif defined(STM32F745xx)
130  #include "stm32f745xx.h"
131 #elif defined(STM32F765xx)
132  #include "stm32f765xx.h"
133 #elif defined(STM32F767xx)
134  #include "stm32f767xx.h"
135 #elif defined(STM32F769xx)
136  #include "stm32f769xx.h"
137 #elif defined(STM32F777xx)
138  #include "stm32f777xx.h"
139 #elif defined(STM32F779xx)
140  #include "stm32f779xx.h"
141 #else
142  #error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"
143 #endif
144 
152 typedef enum
153 {
154  RESET = 0,
157 
158 typedef enum
159 {
160  DISABLE = 0,
163 #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
164 
165 typedef enum
166 {
167  ERROR = 0,
169 } ErrorStatus;
170 
178 #define SET_BIT(REG, BIT) ((REG) |= (BIT))
179 
180 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
181 
182 #define READ_BIT(REG, BIT) ((REG) & (BIT))
183 
184 #define CLEAR_REG(REG) ((REG) = (0x0))
185 
186 #define WRITE_REG(REG, VAL) ((REG) = (VAL))
187 
188 #define READ_REG(REG) ((REG))
189 
190 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
191 
192 #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
193 
198 #ifdef USE_HAL_DRIVER
199  #include "stm32f7xx_hal_conf.h"
200 #endif /* USE_HAL_DRIVER */
201 
202 #ifdef __cplusplus
203 }
204 #endif /* __cplusplus */
205 
206 #endif /* __STM32F7xx_H */
207 
216 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
enum FlagStatus ITStatus
Definition: stm32f7xx.h:155
ErrorStatus
Definition: stm32f7xx.h:165
FunctionalState
Definition: stm32f7xx.h:158
HAL configuration file.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
FlagStatus
Definition: stm32f7xx.h:152
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.