RTEMS 6.1-rc4
|
This file contains HAL common defines, enumeration, macros and structures definitions. More...
Go to the source code of this file.
Macros | |
#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 | UNUSED(x) ((void)(x)) /* To avoid gcc/g++ warnings */ |
#define | __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = 0) |
Reset the Handle's State field. | |
#define | __HAL_LOCK(__HANDLE__) |
#define | __HAL_UNLOCK(__HANDLE__) |
#define | __ALIGN_END |
Enumerations | |
enum | HAL_StatusTypeDef { HAL_OK = 0x00 , HAL_ERROR = 0x01 , HAL_BUSY = 0x02 , HAL_TIMEOUT = 0x03 } |
HAL Status structures definition. | |
enum | HAL_LockTypeDef { HAL_UNLOCKED = 0x00 , HAL_LOCKED = 0x01 } |
HAL Lock structures definition. | |
This file contains HAL common defines, enumeration, macros and structures definitions.
Copyright (c) 2017 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 __HAL_LINKDMA | ( | __HANDLE__, | |
__PPP_DMA_FIELD__, | |||
__DMA_HANDLE__ | |||
) |
#define __HAL_LOCK | ( | __HANDLE__ | ) |
#define __HAL_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = 0) |
Reset the Handle's State field.
__HANDLE__ | specifies the Peripheral Handle. |
None |
#define __HAL_UNLOCK | ( | __HANDLE__ | ) |