21#ifndef STM32H7xx_HAL_DEF
22#define STM32H7xx_HAL_DEF
58#define HAL_MAX_DELAY 0xFFFFFFFFU
60#define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == (BIT))
61#define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U)
63#define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \
65 (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \
66 (__DMA_HANDLE__).Parent = (__HANDLE__); \
70#define UNUSED(x) ((void)(x))
88#define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0)
91 #error " USE_RTOS should be 0 in the current HAL release "
93 #define __HAL_LOCK(__HANDLE__) \
95 if((__HANDLE__)->Lock == HAL_LOCKED) \
101 (__HANDLE__)->Lock = HAL_LOCKED; \
105 #define __HAL_UNLOCK(__HANDLE__) \
107 (__HANDLE__)->Lock = HAL_UNLOCKED; \
112#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
114 #define __weak __attribute__((weak))
117 #define __packed __attribute__((packed))
119#elif defined ( __GNUC__ ) && !defined (__CC_ARM)
121 #define __weak __attribute__((weak))
124 #define __packed __attribute__((__packed__))
130#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
131 #ifndef __ALIGN_BEGIN
132 #define __ALIGN_BEGIN
135 #define __ALIGN_END __attribute__ ((aligned (4)))
137#elif defined ( __GNUC__ ) && !defined (__CC_ARM)
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
158#if defined (__GNUC__)
159 #define ALIGN_32BYTES(buf) buf __attribute__ ((aligned (32)))
160#elif defined (__ICCARM__)
161 #define ALIGN_32BYTES(buf) _Pragma("data_alignment=32") buf
162#elif defined (__CC_ARM)
163 #define ALIGN_32BYTES(buf) __align(32) buf
169#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
181#elif defined ( __ICCARM__ )
186#define __RAM_FUNC __ramfunc
188#elif defined ( __GNUC__ )
194#define __RAM_FUNC __attribute__((section(".RamFunc")))
201#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined ( __GNUC__ )
205#define __NOINLINE __attribute__ ( (noinline) )
207#elif defined ( __ICCARM__ )
211#define __NOINLINE _Pragma("optimize = no_inline")
This file contains aliases definition for the STM32Cube HAL constants macros and functions maintained...
CMSIS STM32H7xx Device Peripheral Access Layer Header File.
HAL_StatusTypeDef
HAL Status structures definition.
HAL_LockTypeDef
HAL Lock structures definition.