hv_drv_Watchdog.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * @file hv_drv_Watchdog.h
  3. * @brief Header file of misc module.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-06-14
  15. */
  16. /** @file
  17. * @brief Watchdog (WDG) CAL APIs
  18. */
  19. #ifndef _HV_DRV_WATCHDOG_H
  20. #define _HV_DRV_WATCHDOG_H
  21. #include "hv_cal_Watchdog.h"
  22. /** @defgroup CAL_WDG CAL_WDG
  23. * cal watchdog functions
  24. * @{
  25. */
  26. /**
  27. * @brief Reload the counter register.
  28. */
  29. void Hv_Drv_WDG_Feed(UINT32 uiTimeoutMs);
  30. /**
  31. * @brief WDG Enable
  32. */
  33. void Hv_Drv_WDG_Enable(void);
  34. /**
  35. * @brief WDG Disable
  36. */
  37. void Hv_Drv_WDG_Disable(void);
  38. /**
  39. * @brief WDG Cleanup
  40. */
  41. void Hv_Drv_WDG_Cleanup(void);
  42. /**
  43. * @brief set early wakeup calback.
  44. */
  45. void Hv_Drv_WDG_SetEarlyWakeup(HV_CAL_WDG_EARLY_INTERRUPT_FN fEarlyInterruptFn);
  46. /** @} */
  47. #endif