Macros
CALENDAR Exported Macros
Peripheral Driver » HAL Driver » CALENDAR » Defines

## 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: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WARP Warp Interrupt event

Return values

  None |

Definition at line 302 of file gr55xx_hal_calendar.h.

## ◆ __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 |

Definition at line 266 of file gr55xx_hal_calendar.h.

## ◆ __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: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WARP Warp Interrupt

Return values

  None |

Definition at line 284 of file gr55xx_hal_calendar.h.

## ◆ __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 |

Definition at line 261 of file gr55xx_hal_calendar.h.

## ◆ __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: CALENDAR_IT_ALARM Alarm Interrupt CALENDAR_IT_WARP Warp Interrupt

Return values

  None |

Definition at line 275 of file gr55xx_hal_calendar.h.

## ◆ __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: CALENDAR_FLAG_ALARM Alarm Interrupt event CALENDAR_FLAG_WARP Warp Interrupt event

Return values

  The | new state of IT (TRUE or FALSE).

Definition at line 293 of file gr55xx_hal_calendar.h.