Prusa MINI Firmware overview
|
Go to the documentation of this file.
38 #ifndef __STM32F4xx_HAL_DEF
39 #define __STM32F4xx_HAL_DEF
46 #include "stm32f4xx.h"
74 #define UNUSED(X) (void)X
76 #define HAL_MAX_DELAY 0xFFFFFFFFU
78 #define HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) != RESET)
79 #define HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == RESET)
81 #define __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD__, __DMA_HANDLE__) \
83 (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \
84 (__DMA_HANDLE__).Parent = (__HANDLE__); \
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__ ) && !defined (__CC_ARM)
128 #define __weak __attribute__((weak))
131 #define __packed __attribute__((__packed__))
137 #if 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
161 #if defined ( __CC_ARM )
173 #elif defined ( __ICCARM__ )
178 #define __RAM_FUNC __ramfunc
180 #elif defined ( __GNUC__ )
186 #define __RAM_FUNC __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")
Definition: stm32f4xx_hal_def.h:69
Definition: stm32f4xx_hal_def.h:59
Definition: stm32f4xx_hal_def.h:57
Definition: stm32f4xx_hal_def.h:60
Definition: stm32f4xx_hal_def.h:58
HAL_StatusTypeDef
HAL Status structures definition.
Definition: stm32f4xx_hal_def.h:55
This file contains aliases definition for the STM32Cube HAL constants macros and functions maintained...
HAL_LockTypeDef
HAL Lock structures definition.
Definition: stm32f4xx_hal_def.h:66
Definition: stm32f4xx_hal_def.h:68