CALENDAR Exported Macros

Macros

#define __HAL_CALENDAR_ENABLE()   SET_BITS(AON->CALENDAR_TIMER_CTL, AON_CALENDAR_TIMER_CTL_EN)
 Enable the specified CALENDAR peripheral. More...
 
#define __HAL_CALENDAR_DISABLE()   CLEAR_BITS(AON->CALENDAR_TIMER_CTL, AON_CALENDAR_TIMER_CTL_EN)
 Disable the specified CALENDAR peripheral. More...
 
#define __HAL_CALENDAR_ENABLE_IT(__INTERRUPT__)   SET_BITS(AON->CALENDAR_TIMER_CTL, (__INTERRUPT__))
 Enable the specified CALENDAR interrupts. More...
 
#define __HAL_CALENDAR_DISABLE_IT(__INTERRUPT__)   CLEAR_BITS(AON->CALENDAR_TIMER_CTL, (__INTERRUPT__))
 Disable the specified CALENDAR interrupts. More...
 
#define __HAL_CALENDAR_GET_IT_SOURCE(__FLAG__)   (READ_BITS(AON->SLP_EVENT, (__FLAG__)) == (__FLAG__))
 Check whether the specified CALENDAR interrupt flag is set or not. More...
 
#define __HAL_CALENDAR_CLEAR_FLAG(__FLAG__)   WRITE_REG(AON->SLP_EVENT, ~(__FLAG__))
 Clear the specified CALENDAR flag. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_CALENDAR_CLEAR_FLAG

#define __HAL_CALENDAR_CLEAR_FLAG (   __FLAG__)    WRITE_REG(AON->SLP_EVENT, ~(__FLAG__))

Clear the specified CALENDAR flag.

Parameters
<strong>FLAG</strong>Specifies the flag to clear. This parameter can be one of the following values:
Return values
None

◆ __HAL_CALENDAR_DISABLE

#define __HAL_CALENDAR_DISABLE ( )    CLEAR_BITS(AON->CALENDAR_TIMER_CTL, AON_CALENDAR_TIMER_CTL_EN)

Disable the specified CALENDAR peripheral.

Return values
None

◆ __HAL_CALENDAR_DISABLE_IT

#define __HAL_CALENDAR_DISABLE_IT (   __INTERRUPT__)    CLEAR_BITS(AON->CALENDAR_TIMER_CTL, (__INTERRUPT__))

Disable the specified CALENDAR interrupts.

Parameters
<strong>INTERRUPT</strong>Specifies the interrupt source to disable. This parameter can be one of the following values:
Return values
None

◆ __HAL_CALENDAR_ENABLE

#define __HAL_CALENDAR_ENABLE ( )    SET_BITS(AON->CALENDAR_TIMER_CTL, AON_CALENDAR_TIMER_CTL_EN)

Enable the specified CALENDAR peripheral.

Return values
None

◆ __HAL_CALENDAR_ENABLE_IT

#define __HAL_CALENDAR_ENABLE_IT (   __INTERRUPT__)    SET_BITS(AON->CALENDAR_TIMER_CTL, (__INTERRUPT__))

Enable the specified CALENDAR interrupts.

Parameters
<strong>INTERRUPT</strong>Specifies the interrupt source to enable. This parameter can be one of the following values:
Return values
None

◆ __HAL_CALENDAR_GET_IT_SOURCE

#define __HAL_CALENDAR_GET_IT_SOURCE (   __FLAG__)    (READ_BITS(AON->SLP_EVENT, (__FLAG__)) == (__FLAG__))

Check whether the specified CALENDAR interrupt flag is set or not.

Parameters
<strong>FLAG</strong>Specifies the interrupt source to check. This parameter can be one of the following values:
Return values
Thenew state of IT (TRUE or FALSE).