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_INIT() |
Timeout module init. This macro must be used in conjunction with the HAL_TIMEOUT_DEINIT macro. More... | |
#define | HAL_TIMEOUT_DEINIT() |
Timeout module deinit. This macro must be used in conjunction with the HAL_TIMEOUT_INIT macro. 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 __ALIGN_END |
ALIGN END
Definition at line 227 of file gr533x_hal_def.h.
#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 |
Definition at line 152 of file gr533x_hal_def.h.
#define __HAL_LOCK | ( | __HANDLE__ | ) |
Lock peripheral handle.
__HANDLE__ | specifies the peripheral handle. |
HAL_BUSY | If handle is locked. |
Definition at line 183 of file gr533x_hal_def.h.
#define __HAL_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->state = 0U) |
Reset the Handle's State field.
__HANDLE__ | specifies the Peripheral Handle. |
None |
Definition at line 173 of file gr533x_hal_def.h.
#define __HAL_UNLOCK | ( | __HANDLE__ | ) |
Unlock peripheral handle.
__HANDLE__ | specifies the peripheral handle. |
None |
Definition at line 200 of file gr533x_hal_def.h.
#define HAL_IS_BIT_CLR | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) == RESET) |
Check whether the bits of register are clear.
REG | specifies the register. |
BIT | specifies the bits will be checked. |
SET | (BIT is clear) or RESET (BIT is not clear) |
Definition at line 143 of file gr533x_hal_def.h.
#define HAL_IS_BIT_SET | ( | REG, | |
BIT | |||
) | (((REG) & (BIT)) != RESET) |
Check whether the bits of register are set.
REG | specifies the register. |
BIT | specifies the bits will be checked. |
SET | (BIT is set) or RESET (BIT is not set) |
Definition at line 136 of file gr533x_hal_def.h.
#define HAL_MAX_DELAY (40000U) |
HAL max delay definition. Unit is millisecond. 40000ms is the max delay time in 96MHz system clock.
Definition at line 102 of file gr533x_hal_def.h.
#define HAL_NEVER_TIMEOUT (0xFFFFFFFFU) |
HAL never timeout definition.
Definition at line 96 of file gr533x_hal_def.h.
#define HAL_TIMEOUT_DEINIT | ( | ) |
Timeout module deinit. This macro must be used in conjunction with the HAL_TIMEOUT_INIT macro.
Definition at line 119 of file gr533x_hal_def.h.
#define HAL_TIMEOUT_GET_TICK | ( | ) | (DWT->CYCCNT) |
Timeout module get current tick.
Current | tick |
Definition at line 128 of file gr533x_hal_def.h.
#define HAL_TIMEOUT_INIT | ( | ) |
Timeout module init. This macro must be used in conjunction with the HAL_TIMEOUT_DEINIT macro.
Definition at line 108 of file gr533x_hal_def.h.