Configuration functions

Functions

__STATIC_INLINE void ll_aon_wdt_enable (void)
 Enable AON watchdog counter and interrupt event. More...
 
__STATIC_INLINE void ll_aon_wdt_disable (void)
 Disable AON watchdog counter and interrupt event. More...
 
__STATIC_INLINE uint32_t ll_aon_wdt_is_enabled (void)
 Check if the AON_WDT peripheral is enabled or disabled. More...
 
__STATIC_INLINE void ll_aon_wdt_set_reload_counter (uint32_t counter)
 Specify the AON WDT down-counter reload value. More...
 
__STATIC_INLINE void ll_aon_wdt_reload_counter (void)
 Reloads AON WDT counter. More...
 
__STATIC_INLINE uint32_t ll_aon_wdt_get_counter (void)
 Read the AON WDT counter current value. More...
 
__STATIC_INLINE void ll_aon_wdt_set_alarm_counter (uint32_t counter)
 Specify the AON_WDT down-counter alarm value. More...
 
__STATIC_INLINE uint32_t ll_aon_wdt_get_alarm_counter (void)
 Get the AON_WDT down-counter alarm value. More...
 

Detailed Description

Function Documentation

◆ ll_aon_wdt_disable()

__STATIC_INLINE void ll_aon_wdt_disable ( void  )

Disable AON watchdog counter and interrupt event.

Register BitsName
EXT_WKUP_CTL WDT_EN
Return values
None

◆ ll_aon_wdt_enable()

__STATIC_INLINE void ll_aon_wdt_enable ( void  )

Enable AON watchdog counter and interrupt event.

Register BitsName
EXT_WKUP_CTL WDT_EN
Return values
None

◆ ll_aon_wdt_get_alarm_counter()

__STATIC_INLINE uint32_t ll_aon_wdt_get_alarm_counter ( void  )

Get the AON_WDT down-counter alarm value.

Register BitsName
EXT_WKUP_CTL WDT_ALARM
Return values
Valuebetween Min_Data=0 and Max_Data=0x1F

◆ ll_aon_wdt_get_counter()

__STATIC_INLINE uint32_t ll_aon_wdt_get_counter ( void  )

Read the AON WDT counter current value.

Register BitsName
AON_PAD_CTL1 AON_WDT_TIMER
TIMER_VAL TIMER_VAL_READ
Return values
Valuefor current counter which should ranging between 0 ~ 0xFFFF_FFFF

◆ ll_aon_wdt_is_enabled()

__STATIC_INLINE uint32_t ll_aon_wdt_is_enabled ( void  )

Check if the AON_WDT peripheral is enabled or disabled.

Register BitsName
EXT_WKUP_CTL WDT_EN
Return values
Stateof bit (1 or 0).

◆ ll_aon_wdt_reload_counter()

__STATIC_INLINE void ll_aon_wdt_reload_counter ( void  )

Reloads AON WDT counter.

Note
The value in TIMER_VALUE register will be reloaded into AON WDT down-counter after enable this bit, so ll_aon_wdt_set_reload_counter() should be called before every reload.
Register BitsName
EXT_WKUP_CTL WDT_RELOAD
Return values
None

◆ ll_aon_wdt_set_alarm_counter()

__STATIC_INLINE void ll_aon_wdt_set_alarm_counter ( uint32_t  counter)

Specify the AON_WDT down-counter alarm value.

Note
AON watchdog will generate an interrupt when it counts down to the alarm value to alram that it is almost expired.
Register BitsName
EXT_WKUP_CTL WDT_ALARM
Parameters
counterValue between Min_Data=0 and Max_Data=0x1F
Return values
None

◆ ll_aon_wdt_set_reload_counter()

__STATIC_INLINE void ll_aon_wdt_set_reload_counter ( uint32_t  counter)

Specify the AON WDT down-counter reload value.

Register BitsName
TIMER_VALUE TIMER_VALUE
Parameters
counterValue for reload down-counter which should ranging between 0 ~ 0xFFFF_FFFF
Return values
None