Macros | |
#define | HAL_NEVER_TIMEOUT (0xFFFFFFFFU) |
HAL never timeout definition. More... | |
#define | HAL_MAX_DELAY (40000U) |
HAL max delay definition. Unit is millisecond. 40000ms is the max delay time in 96MHz system clock. More... | |
#define | HAL_TIMEOUT_GET_TICK() (DWT->CYCCNT) |
Timeout module get current tick. More... | |
#define | HAL_IS_BIT_SET(REG, BIT) (((REG) & (BIT)) != RESET) |
Check whether the bits of register are set. More... | |
#define | HAL_IS_BIT_CLR(REG, BIT) (((REG) & (BIT)) == RESET) |
Check whether the bits of register are clear. More... | |
#define | __HAL_LINKDMA(__HANDLE__, __PPP_DMA_FIELD_, __DMA_HANDLE_) |
Link DMA handle and peripheral handle. More... | |
#define | __HAL_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = 0U) |
Reset the Handle's State field. More... | |
#define | __HAL_LOCK(__HANDLE__) |
Lock peripheral handle. More... | |
#define | __HAL_UNLOCK(__HANDLE__) |
Unlock peripheral handle. More... | |
#define | __ALIGN_END |
#define __HAL_LINKDMA | ( | __HANDLE__, | |
__PPP_DMA_FIELD_, | |||
__DMA_HANDLE_ | |||
) |
Link DMA handle and peripheral handle.
__HANDLE__ | specifies the peripheral handle. |
__PPP_DMA_FIELD_ | specifies the DMA pointer in struction of peripheral handle. |
__DMA_HANDLE_ | specifies the DMA handle. |
None |
#define __HAL_LOCK | ( | __HANDLE__ | ) |
Lock peripheral handle.
__HANDLE__ | specifies the peripheral handle. |
HAL_BUSY | If handle is locked. |
#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__ | ) |
Unlock peripheral handle.
__HANDLE__ | specifies the peripheral handle. |
None |
#define HAL_IS_BIT_CLR | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) == RESET) |
#define HAL_IS_BIT_SET | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) != RESET) |
#define HAL_MAX_DELAY (40000U) |
#define HAL_NEVER_TIMEOUT (0xFFFFFFFFU) |