40 #ifndef __STM32F7xx_HAL_DEF 41 #define __STM32F7xx_HAL_DEF 74 #define HAL_MAX_DELAY 0xFFFFFFFFU 76 #define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) != RESET) 77 #define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == RESET) 79 #define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \ 81 (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \ 82 (__DMA_HANDLE__).Parent = (__HANDLE__); \ 85 #define UNUSED(x) ((void)(x)) 102 #define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U) 106 #error "USE_RTOS should be 0 in the current HAL release" 108 #define __HAL_LOCK(__HANDLE__) \ 110 if((__HANDLE__)->Lock == HAL_LOCKED) \ 116 (__HANDLE__)->Lock = HAL_LOCKED; \ 120 #define __HAL_UNLOCK(__HANDLE__) \ 122 (__HANDLE__)->Lock = HAL_UNLOCKED; \ 126 #if defined ( __GNUC__ ) 128 #define __weak __attribute__((weak)) 131 #define __packed __attribute__((__packed__)) 137 #if defined (__GNUC__) 139 #define __ALIGN_END __attribute__ ((aligned (4))) 141 #ifndef __ALIGN_BEGIN 142 #define __ALIGN_BEGIN 148 #ifndef __ALIGN_BEGIN 149 #if defined (__CC_ARM) 150 #define __ALIGN_BEGIN __align(4) 151 #elif defined (__ICCARM__) 152 #define __ALIGN_BEGIN 161 #if defined ( __CC_ARM ) 171 #define __RAM_FUNC HAL_StatusTypeDef 173 #elif defined ( __ICCARM__ ) 178 #define __RAM_FUNC __ramfunc HAL_StatusTypeDef 180 #elif defined ( __GNUC__ ) 186 #define __RAM_FUNC HAL_StatusTypeDef __attribute__((section(".RamFunc"))) 193 #if defined ( __CC_ARM ) || defined ( __GNUC__ ) 197 #define __NOINLINE __attribute__ ( (noinline) ) 199 #elif defined ( __ICCARM__ ) 203 #define __NOINLINE _Pragma("optimize = no_inline")
This file contains aliases definition for the STM32Cube HAL constants macros and functions maintained...
HAL_LockTypeDef
HAL Lock structures definition.
CMSIS STM32F7xx Device Peripheral Access Layer Header File.
HAL_StatusTypeDef
HAL Status structures definition.