extern
porcupine
demo
mcu
stm32f769
stm32f769i-disco
Drivers
CMSIS
Device
ST
STM32F7xx
Include
stm32f7xx.h
Go to the documentation of this file.
1
38
#ifndef __STM32F7xx_H
39
#define __STM32F7xx_H
40
41
#ifdef __cplusplus
42
extern
"C"
{
43
#endif
/* __cplusplus */
44
52
#if !defined (STM32F7)
53
#define STM32F7
54
#endif
/* STM32F7 */
55
56
/* Uncomment the line below according to the target STM32 device used in your
57
application
58
*/
59
#if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F765xx) && \
60
!defined (STM32F767xx) && !defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx) && \
61
!defined (STM32F722xx) && !defined (STM32F723xx) && !defined (STM32F732xx) && !defined (STM32F733xx) && \
62
!defined (STM32F730xx) && !defined (STM32F750xx)
63
64
/* #define STM32F756xx */
66
/* #define STM32F746xx */
68
/* #define STM32F745xx */
69
/* #define STM32F765xx */
71
/* #define STM32F767xx */
73
/* #define STM32F769xx */
75
/* #define STM32F777xx */
76
/* #define STM32F779xx */
77
/* #define STM32F722xx */
79
/* #define STM32F723xx */
80
/* #define STM32F732xx */
81
/* #define STM32F733xx */
82
/* #define STM32F730xx */
83
/* #define STM32F750xx */
84
#endif
85
86
/* Tip: To avoid modifying this file each time you need to switch between these
87
devices, you can define the device in your toolchain compiler preprocessor.
88
*/
89
90
#if !defined (USE_HAL_DRIVER)
91
96
/*#define USE_HAL_DRIVER */
97
#endif
/* USE_HAL_DRIVER */
98
102
#define __STM32F7_CMSIS_VERSION_MAIN (0x01)
103
#define __STM32F7_CMSIS_VERSION_SUB1 (0x02)
104
#define __STM32F7_CMSIS_VERSION_SUB2 (0x05)
105
#define __STM32F7_CMSIS_VERSION_RC (0x00)
106
#define __STM32F7_CMSIS_VERSION ((__STM32F7_CMSIS_VERSION_MAIN << 24)\
107
|(__STM32F7_CMSIS_VERSION_SUB1 << 16)\
108
|(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\
109
|(__STM32F7_CMSIS_VERSION_RC))
110
117
#if defined(STM32F722xx)
118
#include "stm32f722xx.h"
119
#elif defined(STM32F723xx)
120
#include "stm32f723xx.h"
121
#elif defined(STM32F732xx)
122
#include "stm32f732xx.h"
123
#elif defined(STM32F733xx)
124
#include "stm32f733xx.h"
125
#elif 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
#elif defined(STM32F730xx)
142
#include "stm32f730xx.h"
143
#elif defined(STM32F750xx)
144
#include "stm32f750xx.h"
145
#else
146
#error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"
147
#endif
148
156
typedef
enum
157
{
158
RESET
= 0U,
159
SET
= !
RESET
160
}
FlagStatus
,
ITStatus
;
161
162
typedef
enum
163
{
164
DISABLE
= 0U,
165
ENABLE
= !
DISABLE
166
}
FunctionalState
;
167
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
168
169
typedef
enum
170
{
171
SUCCESS
= 0U,
172
ERROR
= !
SUCCESS
173
}
ErrorStatus
;
174
182
#define SET_BIT(REG, BIT) ((REG) |= (BIT))
183
184
#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
185
186
#define READ_BIT(REG, BIT) ((REG) & (BIT))
187
188
#define CLEAR_REG(REG) ((REG) = (0x0))
189
190
#define WRITE_REG(REG, VAL) ((REG) = (VAL))
191
192
#define READ_REG(REG) ((REG))
193
194
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
195
196
#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
197
202
#ifdef USE_HAL_DRIVER
203
#include "
stm32f7xx_hal.h
"
204
#endif
/* USE_HAL_DRIVER */
205
206
#ifdef __cplusplus
207
}
208
#endif
/* __cplusplus */
209
210
#endif
/* __STM32F7xx_H */
211
220
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
stm32f769xx.h
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
ERROR
@ ERROR
Definition:
stm32f7xx.h:172
DISABLE
@ DISABLE
Definition:
stm32f7xx.h:164
ENABLE
@ ENABLE
Definition:
stm32f7xx.h:165
RESET
@ RESET
Definition:
stm32f7xx.h:158
SET
@ SET
Definition:
stm32f7xx.h:159
FlagStatus
FlagStatus
Definition:
stm32f7xx.h:156
SUCCESS
@ SUCCESS
Definition:
stm32f7xx.h:171
ErrorStatus
ErrorStatus
Definition:
stm32f7xx.h:169
stm32f7xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
FunctionalState
FunctionalState
Definition:
stm32f7xx.h:162
ITStatus
enum FlagStatus ITStatus
picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:53