mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-28 01:01:34 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
46
Living_SDK/include/hal/soc/wdg.h
Normal file
46
Living_SDK/include/hal/soc/wdg.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||||
*/
|
||||
|
||||
#ifndef HAL_WDG_H
|
||||
#define HAL_WDG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t timeout; /* Watchdag timeout */
|
||||
} wdg_config_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t port; /* wdg port */
|
||||
wdg_config_t config; /* wdg config */
|
||||
void *priv; /* priv data */
|
||||
} wdg_dev_t;
|
||||
|
||||
/**
|
||||
* This function will initialize the on board CPU hardware watch dog
|
||||
*
|
||||
* @param[in] wdg the watch dog device
|
||||
*
|
||||
* @return 0 : on success, EIO : if an error occurred with any step
|
||||
*/
|
||||
int32_t hal_wdg_init(wdg_dev_t *wdg);
|
||||
|
||||
/**
|
||||
* Reload watchdog counter.
|
||||
*
|
||||
* @param[in] wdg the watch dog device
|
||||
*/
|
||||
void hal_wdg_reload(wdg_dev_t *wdg);
|
||||
|
||||
/**
|
||||
* This function performs any platform-specific cleanup needed for hardware watch dog.
|
||||
*
|
||||
* @param[in] wdg the watch dog device
|
||||
*
|
||||
* @return 0 : on success, EIO : if an error occurred with any step
|
||||
*/
|
||||
int32_t hal_wdg_finalize(wdg_dev_t *wdg);
|
||||
|
||||
#endif /* HAL_WDG_H */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue