70 #if !defined (STM32F7) 77 #if !defined (STM32F756xx) && !defined (STM32F746xx) && !defined (STM32F745xx) && !defined (STM32F767xx) && \ 78 !defined (STM32F769xx) && !defined (STM32F777xx) && !defined (STM32F779xx) 98 #if !defined (USE_HAL_DRIVER) 104 #define USE_HAL_DRIVER 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)) 125 #if defined(STM32F756xx) 126 #include "stm32f756xx.h" 127 #elif defined(STM32F746xx) 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" 142 #error "Please select first the target STM32F7xx device used in your application (in stm32f7xx.h file)" 163 #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) 178 #define SET_BIT(REG, BIT) ((REG) |= (BIT)) 180 #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) 182 #define READ_BIT(REG, BIT) ((REG) & (BIT)) 184 #define CLEAR_REG(REG) ((REG) = (0x0)) 186 #define WRITE_REG(REG, VAL) ((REG) = (VAL)) 188 #define READ_REG(REG) ((REG)) 190 #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) 192 #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) 198 #ifdef USE_HAL_DRIVER FlagStatus
Definition: stm32f7xx.h:152
FunctionalState
Definition: stm32f7xx.h:158
Definition: stm32f7xx.h:168
Definition: stm32f7xx.h:154
Definition: stm32f7xx.h:155
CMSIS Cortex-M7 Device Peripheral Access Layer Header File.
ErrorStatus
Definition: stm32f7xx.h:165
Definition: stm32f7xx.h:161
Definition: stm32f7xx.h:160
Definition: stm32f7xx.h:167