Macros | |
#define | __HAL_RTC_DISABLE(RTCx) MODIFY_REG(RTCx->CFG0, 0xFFFFFFFFU, RTC_CFG0_CFG); |
Disable the specified RTC peripheral. More... | |
#define | __HAL_RTC_ENABLE(RTCx) WRITE_REG(RTCx->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN); |
Enable the specified RTC peripheral. More... | |
#define | __HAL_RTC_BUSY_FLAG(RTCx) ((READ_BITS(RTCx->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY)) |
Get the specified RTC peripheral busy flag. More... | |
#define | __HAL_RTC_CLEAR_FLAG(RTCx, __FLAG__) WRITE_REG(RTCx->INT_STAT, (__FLAG__)) |
Clear the specified RTC flag. More... | |
#define | __HAL_RTC_ENABLE_IT(RTCx, __INTERRUPT__) SET_BITS(RTCx->INT_EN, (__INTERRUPT__)) |
Enable the specified RTC interrupts. More... | |
#define | __HAL_RTC_DISABLE_IT(RTCx, __INTERRUPT__) CLEAR_BITS(RTCx->INT_EN, (__INTERRUPT__)) |
Disable the specified RTC interrupts. More... | |
#define | __HAL_RTC_GET_IT_SOURCE(RTCx, __FLAG__) (READ_BITS(RTCx->INT_STAT, (__FLAG__)) == (__FLAG__)) |
Check whether the specified RTC interrupt flag is set or not. More... | |
#define __HAL_RTC_BUSY_FLAG | ( | RTCx | ) | ((READ_BITS(RTCx->STAT, RTC_STAT_BUSY) == RTC_STAT_BUSY)) |
#define __HAL_RTC_CLEAR_FLAG | ( | RTCx, | |
__FLAG__ | |||
) | WRITE_REG(RTCx->INT_STAT, (__FLAG__)) |
Clear the specified RTC flag.
RTCx | RTC instance. |
__FLAG__ | Specifies the flag to clear. This parameter can be one of the following values:
|
None |
#define __HAL_RTC_DISABLE | ( | RTCx | ) | MODIFY_REG(RTCx->CFG0, 0xFFFFFFFFU, RTC_CFG0_CFG); |
#define __HAL_RTC_DISABLE_IT | ( | RTCx, | |
__INTERRUPT__ | |||
) | CLEAR_BITS(RTCx->INT_EN, (__INTERRUPT__)) |
Disable the specified RTC interrupts.
RTCx | RTC instance. |
__INTERRUPT__ | Specifies the interrupt source to disable. This parameter can be one of the following values:
|
None |
#define __HAL_RTC_ENABLE | ( | RTCx | ) | WRITE_REG(RTCx->CFG0, RTC_CFG0_CFG | RTC_CFG0_EN); |
#define __HAL_RTC_ENABLE_IT | ( | RTCx, | |
__INTERRUPT__ | |||
) | SET_BITS(RTCx->INT_EN, (__INTERRUPT__)) |
Enable the specified RTC interrupts.
RTCx | RTC instance. |
__INTERRUPT__ | Specifies the interrupt source to enable. This parameter can be one of the following values:
|
None |
#define __HAL_RTC_GET_IT_SOURCE | ( | RTCx, | |
__FLAG__ | |||
) | (READ_BITS(RTCx->INT_STAT, (__FLAG__)) == (__FLAG__)) |
Check whether the specified RTC interrupt flag is set or not.
RTCx | RTC instance. |
__FLAG__ | Specifies the interrupt source to check. This parameter can be one of the following values:
|
The | new state of __IT__ (TRUE or FALSE). |