40 #ifndef __STM32F4xx_HAL_DEF 41 #define __STM32F4xx_HAL_DEF 75 #define HAL_MAX_DELAY 0xFFFFFFFFU 77 #define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) != RESET) 78 #define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == RESET) 80 #define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \ 82 (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \ 83 (__DMA_HANDLE__).Parent = (__HANDLE__); \ 86 #define UNUSED(x) ((void)(x)) 103 #define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U) 107 #error "USE_RTOS should be 0 in the current HAL release" 109 #define __HAL_LOCK(__HANDLE__) \ 111 if((__HANDLE__)->Lock == HAL_LOCKED) \ 117 (__HANDLE__)->Lock = HAL_LOCKED; \ 121 #define __HAL_UNLOCK(__HANDLE__) \ 123 (__HANDLE__)->Lock = HAL_UNLOCKED; \ 127 #if defined ( __GNUC__ ) 129 #define __weak __attribute__((weak)) 132 #define __packed __attribute__((__packed__)) 138 #if defined (__GNUC__) 140 #define __ALIGN_END __attribute__ ((aligned (4))) 142 #ifndef __ALIGN_BEGIN 143 #define __ALIGN_BEGIN 149 #ifndef __ALIGN_BEGIN 150 #if defined (__CC_ARM) 151 #define __ALIGN_BEGIN __align(4) 152 #elif defined (__ICCARM__) 153 #define __ALIGN_BEGIN 162 #if defined ( __CC_ARM ) 172 #define __RAM_FUNC HAL_StatusTypeDef 174 #elif defined ( __ICCARM__ ) 179 #define __RAM_FUNC __ramfunc HAL_StatusTypeDef 181 #elif defined ( __GNUC__ ) 187 #define __RAM_FUNC HAL_StatusTypeDef __attribute__((section(".RamFunc"))) 194 #if defined ( __CC_ARM ) || defined ( __GNUC__ ) 198 #define __NOINLINE __attribute__ ( (noinline) ) 200 #elif defined ( __ICCARM__ ) 204 #define __NOINLINE _Pragma("optimize = no_inline") This file contains aliases definition for the STM32Cube HAL constants macros and functions maintained...
CMSIS STM32F4xx Device Peripheral Access Layer Header File.
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:57
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32f4xx_hal_def.h:68