gr55xx_hal_aon_wdt.h
Go to the documentation of this file.
1
51 /* Define to prevent recursive inclusion -------------------------------------*/
52 #ifndef __GR55xx_HAL_AON_WDT_H__
53 #define __GR55xx_HAL_AON_WDT_H__
54
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58
59 /* Includes ------------------------------------------------------------------*/
60 #include "gr55xx_ll_aon_wdt.h"
61 #include "gr55xx_hal_def.h"
62
63 /* Exported types ------------------------------------------------------------*/
75 typedef struct _aon_wdt_init
76 {
77 uint32_t counter;
80 uint32_t alarm_counter;
87 } aon_wdt_init_t;
88
98 typedef struct _aon_wdt_handle
99 {
100 aon_wdt_init_t init;
102 hal_lock_t lock;
104 } aon_wdt_handle_t;
105
122 typedef struct _aon_wdt_callback
123 {
124 void (*aon_wdt_alarm_callback)(aon_wdt_handle_t *p_aon_wdt);
125 } hal_aon_wdt_callback_t;
126
131 /* Exported functions --------------------------------------------------------*/
167 hal_status_t hal_aon_wdt_init(aon_wdt_handle_t *p_aon_wdt);
168
181 hal_status_t hal_aon_wdt_deinit(aon_wdt_handle_t *p_aon_wdt);
182
214 hal_status_t hal_aon_wdt_refresh(aon_wdt_handle_t *p_aon_wdt);
215
238 void hal_aon_wdt_irq_handler(aon_wdt_handle_t *p_aon_wdt);
239
251 void hal_aon_wdt_alarm_callback(aon_wdt_handle_t *p_aon_wdt);
252
257 #ifdef __cplusplus
258 }
259 #endif
260
261 #endif /* __GR55xx_HAL_AON_WDT_H__ */
262
_aon_wdt_init::alarm_counter
uint32_t alarm_counter
Definition: gr55xx_hal_aon_wdt.h:80
hal_lock_t
hal_lock_t
HAL Lock structures definition.
Definition: gr55xx_hal_def.h:81
_aon_wdt_handle::init
aon_wdt_init_t init
Definition: gr55xx_hal_aon_wdt.h:100
_aon_wdt_callback::aon_wdt_alarm_callback
void(* aon_wdt_alarm_callback)(aon_wdt_handle_t *p_aon_wdt)
Definition: gr55xx_hal_aon_wdt.h:124
hal_aon_wdt_deinit
hal_status_t hal_aon_wdt_deinit(aon_wdt_handle_t *p_aon_wdt)
De-initialize the AON_WDT peripheral.
hal_aon_wdt_alarm_callback
void hal_aon_wdt_alarm_callback(aon_wdt_handle_t *p_aon_wdt)
AON_WDT count complete (counter reaches to 0) callback.
hal_aon_wdt_irq_handler
void hal_aon_wdt_irq_handler(aon_wdt_handle_t *p_aon_wdt)
Handle AON_WDT interrupt request.
aon_wdt_init_t
struct _aon_wdt_init aon_wdt_init_t
AON_WDT_Configuration init structure definition.
_aon_wdt_callback
HAL_AON_WDT Callback function definition.
Definition: gr55xx_hal_aon_wdt.h:123
aon_wdt_handle_t
struct _aon_wdt_handle aon_wdt_handle_t
AON_WDT handle Structure definition.
_aon_wdt_handle::lock
hal_lock_t lock
Definition: gr55xx_hal_aon_wdt.h:102
gr55xx_ll_aon_wdt.h
Header file containing functions prototypes of AON WDT LL library.
hal_aon_wdt_refresh
hal_status_t hal_aon_wdt_refresh(aon_wdt_handle_t *p_aon_wdt)
Refresh the AON_WDT.
hal_status_t
hal_status_t
HAL Status structures definition.
Definition: gr55xx_hal_def.h:70
hal_aon_wdt_callback_t
struct _aon_wdt_callback hal_aon_wdt_callback_t
HAL_AON_WDT Callback function definition.
hal_aon_wdt_init
hal_status_t hal_aon_wdt_init(aon_wdt_handle_t *p_aon_wdt)
Initialize the AON_WDT according to the specified parameters in the wdt_init_t of associated handle.
_aon_wdt_init::counter
uint32_t counter
Definition: gr55xx_hal_aon_wdt.h:77
_aon_wdt_handle
AON_WDT handle Structure definition.
Definition: gr55xx_hal_aon_wdt.h:99
_aon_wdt_init
AON_WDT_Configuration init structure definition.
Definition: gr55xx_hal_aon_wdt.h:76
gr55xx_hal_def.h
This file contains HAL common definitions, enumeration, macros and structures definitions.