stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h
Go to the documentation of this file.
1 
38 #ifndef __STM32F4xx_H
39 #define __STM32F4xx_H
40 
41 #ifdef __cplusplus
42  extern "C" {
43 #endif /* __cplusplus */
44 
52 #if !defined (STM32F4)
53 #define STM32F4
54 #endif /* STM32F4 */
55 
56 /* Uncomment the line below according to the target STM32 device used in your
57  application
58  */
59 #if !defined (STM32F405xx) && !defined (STM32F415xx) && !defined (STM32F407xx) && !defined (STM32F417xx) && \
60  !defined (STM32F427xx) && !defined (STM32F437xx) && !defined (STM32F429xx) && !defined (STM32F439xx) && \
61  !defined (STM32F401xC) && !defined (STM32F401xE) && !defined (STM32F410Tx) && !defined (STM32F410Cx) && \
62  !defined (STM32F410Rx) && !defined (STM32F411xE) && !defined (STM32F446xx) && !defined (STM32F469xx) && \
63  !defined (STM32F479xx) && !defined (STM32F412Cx) && !defined (STM32F412Rx) && !defined (STM32F412Vx) && \
64  !defined (STM32F412Zx) && !defined (STM32F413xx) && !defined (STM32F423xx)
65  /* #define STM32F405xx */
66  /* #define STM32F415xx */
67  /* #define STM32F407xx */
68  /* #define STM32F417xx */
69  /* #define STM32F427xx */
70  /* #define STM32F437xx */
71  /* #define STM32F429xx */
73  /* #define STM32F439xx */
75  /* #define STM32F401xC */
76  /* #define STM32F401xE */
77  /* #define STM32F410Tx */
78  /* #define STM32F410Cx */
79  /* #define STM32F410Rx */
80  /* #define STM32F411xE */
81  /* #define STM32F446xx */
83  /* #define STM32F469xx */
85  /* #define STM32F479xx */
87  /* #define STM32F412Cx */
88  /* #define STM32F412Zx */
89  /* #define STM32F412Vx */
90  /* #define STM32F412Rx */
91  /* #define STM32F413xx */
93  /* #define STM32F423xx */
94 #endif
95 
96 /* Tip: To avoid modifying this file each time you need to switch between these
97  devices, you can define the device in your toolchain compiler preprocessor.
98  */
99 #if !defined (USE_HAL_DRIVER)
100 
105  /*#define USE_HAL_DRIVER */
106 #endif /* USE_HAL_DRIVER */
107 
111 #define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U)
112 #define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U)
113 #define __STM32F4xx_CMSIS_VERSION_SUB2 (0x05U)
114 #define __STM32F4xx_CMSIS_VERSION_RC (0x00U)
115 #define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
116  |(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\
117  |(__STM32F4xx_CMSIS_VERSION_SUB2 << 8 )\
118  |(__STM32F4xx_CMSIS_VERSION))
119 
128 #if defined(STM32F405xx)
129  #include "stm32f405xx.h"
130 #elif defined(STM32F415xx)
131  #include "stm32f415xx.h"
132 #elif defined(STM32F407xx)
133  #include "stm32f407xx.h"
134 #elif defined(STM32F417xx)
135  #include "stm32f417xx.h"
136 #elif defined(STM32F427xx)
137  #include "stm32f427xx.h"
138 #elif defined(STM32F437xx)
139  #include "stm32f437xx.h"
140 #elif defined(STM32F429xx)
141  #include "stm32f429xx.h"
142 #elif defined(STM32F439xx)
143  #include "stm32f439xx.h"
144 #elif defined(STM32F401xC)
145  #include "stm32f401xc.h"
146 #elif defined(STM32F401xE)
147  #include "stm32f401xe.h"
148 #elif defined(STM32F410Tx)
149  #include "stm32f410tx.h"
150 #elif defined(STM32F410Cx)
151  #include "stm32f410cx.h"
152 #elif defined(STM32F410Rx)
153  #include "stm32f410rx.h"
154 #elif defined(STM32F411xE)
155  #include "stm32f411xe.h"
156 #elif defined(STM32F446xx)
157  #include "stm32f446xx.h"
158 #elif defined(STM32F469xx)
159  #include "stm32f469xx.h"
160 #elif defined(STM32F479xx)
161  #include "stm32f479xx.h"
162 #elif defined(STM32F412Cx)
163  #include "stm32f412cx.h"
164 #elif defined(STM32F412Zx)
165  #include "stm32f412zx.h"
166 #elif defined(STM32F412Rx)
167  #include "stm32f412rx.h"
168 #elif defined(STM32F412Vx)
169  #include "stm32f412vx.h"
170 #elif defined(STM32F413xx)
171  #include "stm32f413xx.h"
172 #elif defined(STM32F423xx)
173  #include "stm32f423xx.h"
174 #else
175  #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
176 #endif
177 
185 typedef enum
186 {
187  RESET = 0U,
190 
191 typedef enum
192 {
193  DISABLE = 0U,
196 #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
197 
198 typedef enum
199 {
200  SUCCESS = 0U,
202 } ErrorStatus;
203 
212 #define SET_BIT(REG, BIT) ((REG) |= (BIT))
213 
214 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
215 
216 #define READ_BIT(REG, BIT) ((REG) & (BIT))
217 
218 #define CLEAR_REG(REG) ((REG) = (0x0))
219 
220 #define WRITE_REG(REG, VAL) ((REG) = (VAL))
221 
222 #define READ_REG(REG) ((REG))
223 
224 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
225 
226 #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
227 
228 
233 #if defined (USE_HAL_DRIVER)
234  #include "stm32f4xx_hal.h"
235 #endif /* USE_HAL_DRIVER */
236 
237 #ifdef __cplusplus
238 }
239 #endif /* __cplusplus */
240 
241 #endif /* __STM32F4xx_H */
242 
253 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
ERROR
@ ERROR
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:201
DISABLE
@ DISABLE
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:193
stm32f407xx.h
CMSIS STM32F407xx Device Peripheral Access Layer Header File.
ENABLE
@ ENABLE
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:194
stm32f411xe.h
CMSIS STM32F411xE Device Peripheral Access Layer Header File.
RESET
@ RESET
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:187
SET
@ SET
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:188
FlagStatus
FlagStatus
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:185
SUCCESS
@ SUCCESS
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:200
ErrorStatus
ErrorStatus
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:198
FunctionalState
FunctionalState
Definition: stm32f411/stm32f411e-disco/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:191
ITStatus
enum FlagStatus ITStatus
stm32f469xx.h
CMSIS STM32F469xx Device Peripheral Access Layer Header File.


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:51