My Project
|
This file contains HAL common defines, enumeration, macros and structures definitions. More...
Go to the source code of this file.
Macros | |
#define | UNUSED(X) (void)X /* To avoid gcc/g++ warnings */ |
#define | HAL_MAX_DELAY 0xFFFFFFFFU |
#define | HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) == BIT) |
#define | HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == 0U) |
#define | __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD_, __DMA_HANDLE_) |
#define | __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0U) |
Reset the Handle's State field. | |
#define | __HAL_LOCK(__HANDLE__) |
#define | __HAL_UNLOCK(__HANDLE__) |
#define | __ALIGN_END |
Enumerations | |
enum | HAL_StatusTypeDef { HAL_OK = 0x00U , HAL_ERROR = 0x01U , HAL_BUSY = 0x02U , HAL_TIMEOUT = 0x03 } |
HAL Status structures definition More... | |
enum | HAL_LockTypeDef { HAL_UNLOCKED = 0x00U , HAL_LOCKED = 0x01 } |
HAL Lock structures definition More... | |
This file contains HAL common defines, enumeration, macros and structures definitions.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
#define __ALIGN_END |
#define __HAL_LINKDMA | ( | __HANDLE__, | |
__PPP_DMA_FIELD_, | |||
__DMA_HANDLE_ | |||
) |
#define __HAL_LOCK | ( | __HANDLE__ | ) |
#define __HAL_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = 0U) |
Reset the Handle's State field.
__HANDLE__ | specifies the Peripheral Handle. |
None |
#define __HAL_UNLOCK | ( | __HANDLE__ | ) |
#define HAL_IS_BIT_CLR | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) == 0U) |
#define HAL_IS_BIT_SET | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) == BIT) |
#define HAL_MAX_DELAY 0xFFFFFFFFU |
#define UNUSED | ( | X | ) | (void)X /* To avoid gcc/g++ warnings */ |
enum HAL_LockTypeDef |
enum HAL_StatusTypeDef |