58#if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F765xx) && \
59 !defined (STM32F767xx) && !defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx) && \
60 !defined (STM32F722xx) && !defined (STM32F723xx) && !defined (STM32F732xx) && !defined (STM32F733xx) && \
61 !defined (STM32F730xx) && !defined (STM32F750xx)
89#if !defined (USE_HAL_DRIVER)
101#define __STM32F7_CMSIS_VERSION_MAIN (0x01)
102#define __STM32F7_CMSIS_VERSION_SUB1 (0x02)
103#define __STM32F7_CMSIS_VERSION_SUB2 (0x0A)
104#define __STM32F7_CMSIS_VERSION_RC (0x00)
105#define __STM32F7_CMSIS_VERSION ((__STM32F7_CMSIS_VERSION_MAIN << 24)\
106 |(__STM32F7_CMSIS_VERSION_SUB1 << 16)\
107 |(__STM32F7_CMSIS_VERSION_SUB2 << 8 )\
108 |(__STM32F7_CMSIS_VERSION_RC))
116#if defined(STM32F722xx)
117 #include "stm32f722xx.h"
118#elif defined(STM32F723xx)
119 #include "stm32f723xx.h"
120#elif defined(STM32F732xx)
121 #include "stm32f732xx.h"
122#elif defined(STM32F733xx)
123 #include "stm32f733xx.h"
124#elif defined(STM32F756xx)
125 #include "stm32f756xx.h"
126#elif defined(STM32F746xx)
128#elif defined(STM32F745xx)
129 #include "stm32f745xx.h"
130#elif defined(STM32F765xx)
131 #include "stm32f765xx.h"
132#elif defined(STM32F767xx)
133 #include "stm32f767xx.h"
134#elif defined(STM32F769xx)
135 #include "stm32f769xx.h"
136#elif defined(STM32F777xx)
137 #include "stm32f777xx.h"
138#elif defined(STM32F779xx)
139 #include "stm32f779xx.h"
140#elif defined(STM32F730xx)
141 #include "stm32f730xx.h"
142#elif defined(STM32F750xx)
143 #include "stm32f750xx.h"
145 #error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)"
166#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
181#define SET_BIT(REG, BIT) ((REG) |= (BIT))
183#define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
185#define READ_BIT(REG, BIT) ((REG) & (BIT))
187#define CLEAR_REG(REG) ((REG) = (0x0))
189#define WRITE_REG(REG, VAL) ((REG) = (VAL))
191#define READ_REG(REG) ((REG))
193#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
195#define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL)))
199#define ATOMIC_SET_BIT(REG, BIT) \
203 val = __LDREXW((__IO uint32_t *)&(REG)) | (BIT); \
204 } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
208#define ATOMIC_CLEAR_BIT(REG, BIT) \
212 val = __LDREXW((__IO uint32_t *)&(REG)) & ~(BIT); \
213 } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
217#define ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) \
221 val = (__LDREXW((__IO uint32_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \
222 } while ((__STREXW(val,(__IO uint32_t *)&(REG))) != 0U); \
226#define ATOMIC_SETH_BIT(REG, BIT) \
230 val = __LDREXH((__IO uint16_t *)&(REG)) | (BIT); \
231 } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
235#define ATOMIC_CLEARH_BIT(REG, BIT) \
239 val = __LDREXH((__IO uint16_t *)&(REG)) & ~(BIT); \
240 } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
244#define ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) \
248 val = (__LDREXH((__IO uint16_t *)&(REG)) & ~(CLEARMSK)) | (SETMASK); \
249 } while ((__STREXH(val,(__IO uint16_t *)&(REG))) != 0U); \
257 #include "stm32f7xx_hal.h"
ErrorStatus
Definition stm32f7xx.h:169
FlagStatus
Definition stm32f7xx.h:156
FunctionalState
Definition stm32f7xx.h:162
@ ERROR
Definition stm32f7xx.h:171
@ SUCCESS
Definition stm32f7xx.h:170
@ RESET
Definition stm32f7xx.h:157
@ SET
Definition stm32f7xx.h:158
@ ENABLE
Definition stm32f7xx.h:164
@ DISABLE
Definition stm32f7xx.h:163
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.