21#ifndef __STM32F4xx_HAL_DEF
22#define __STM32F4xx_HAL_DEF
58#define UNUSED(X) (void)X
61#define HAL_MAX_DELAY 0xFFFFFFFFU
63#define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == (BIT))
64#define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U)
66#define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \
68 (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \
69 (__DMA_HANDLE__).Parent = (__HANDLE__); \
87#define __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U)
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; \
111#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
113 #define __weak __attribute__((weak))
116 #define __packed __attribute__((packed))
118#elif defined ( __GNUC__ ) && !defined (__CC_ARM)
120 #define __weak __attribute__((weak))
123 #define __packed __attribute__((__packed__))
129#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
130 #ifndef __ALIGN_BEGIN
131 #define __ALIGN_BEGIN
134 #define __ALIGN_END __attribute__ ((aligned (4)))
136#elif defined ( __GNUC__ ) && !defined (__CC_ARM)
138#define __ALIGN_END __attribute__ ((aligned (4)))
140 #ifndef __ALIGN_BEGIN
141 #define __ALIGN_BEGIN
147 #ifndef __ALIGN_BEGIN
148 #if defined (__CC_ARM)
149#define __ALIGN_BEGIN __align(4)
150 #elif defined (__ICCARM__)
151 #define __ALIGN_BEGIN
160#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
172#elif defined ( __ICCARM__ )
177#define __RAM_FUNC __ramfunc
179#elif defined ( __GNUC__ )
185#define __RAM_FUNC __attribute__((section(".RamFunc")))
192#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined ( __GNUC__ )
196#define __NOINLINE __attribute__ ( (noinline) )
198#elif defined ( __ICCARM__ )
202#define __NOINLINE _Pragma("optimize = no_inline")
This file contains aliases definition for the STM32Cube HAL constants macros and functions maintained...
HAL_StatusTypeDef
HAL Status structures definition
HAL_LockTypeDef
HAL Lock structures definition