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__); \
102#define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U)
110 #error "USE_RTOS should be 0 in the current HAL release"
112 #define __HAL_LOCK(__HANDLE__) \
114 if((__HANDLE__)->Lock == HAL_LOCKED) \
120 (__HANDLE__)->Lock = HAL_LOCKED; \
124 #define __HAL_UNLOCK(__HANDLE__) \
126 (__HANDLE__)->Lock = HAL_UNLOCKED; \
130#if defined ( __GNUC__ )
132 #define __weak __attribute__((weak))
135 #define __packed __attribute__((__packed__))
141#if defined (__GNUC__)
143 #define __ALIGN_END __attribute__ ((aligned (4)))
145 #ifndef __ALIGN_BEGIN
146 #define __ALIGN_BEGIN
152 #ifndef __ALIGN_BEGIN
153 #if defined (__CC_ARM)
154 #define __ALIGN_BEGIN __align(4)
155 #elif defined (__ICCARM__)
156 #define __ALIGN_BEGIN
165#if defined ( __CC_ARM )
175#define __RAM_FUNC HAL_StatusTypeDef
177#elif defined ( __ICCARM__ )
182#define __RAM_FUNC __ramfunc HAL_StatusTypeDef
184#elif defined ( __GNUC__ )
190#define __RAM_FUNC HAL_StatusTypeDef __attribute__((section(".RamFunc")))
197#if defined ( __CC_ARM ) || defined ( __GNUC__ )
201#define __NOINLINE __attribute__ ( (noinline) )
203#elif defined ( __ICCARM__ )
207#define __NOINLINE _Pragma("optimize = no_inline")
HAL_LockTypeDef
HAL Lock structures definition.