wm_watchdog.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * @file wm_watchdog.h
  3. *
  4. * @brief watchdog Driver Module
  5. *
  6. * @author dave
  7. *
  8. * Copyright (c) 2014 Winner Microelectronics Co., Ltd.
  9. */
  10. #ifndef WM_WATCHDOG_H
  11. #define WM_WATCHDOG_H
  12. /**
  13. * @defgroup Driver_APIs Driver APIs
  14. * @brief Driver APIs
  15. */
  16. /**
  17. * @addtogroup Driver_APIs
  18. * @{
  19. */
  20. /**
  21. * @defgroup WDG_Driver_APIs WDG Driver APIs
  22. * @brief WDG driver APIs
  23. */
  24. /**
  25. * @addtogroup WDG_Driver_APIs
  26. * @{
  27. */
  28. /**
  29. * @brief This function is used to feed the dog.
  30. *
  31. * @param None
  32. *
  33. * @return None
  34. *
  35. * @note None
  36. */
  37. void tls_watchdog_clr(void);
  38. /**
  39. * @brief This function is used to init and start the watchdog.
  40. *
  41. * @param[in] usec microseconds
  42. *
  43. * @return None
  44. *
  45. * @note None
  46. */
  47. void tls_watchdog_init(u32 usec);
  48. /**
  49. * @brief This function is used to deinit watchdog
  50. *
  51. * @param[in] None
  52. *
  53. * @return None
  54. *
  55. * @note None
  56. */
  57. void tls_watchdog_deinit(void);
  58. /**
  59. * @brief This function is used to reset the system.
  60. *
  61. * @param None
  62. *
  63. * @return None
  64. *
  65. * @note None
  66. */
  67. void tls_sys_reset(void);
  68. /**
  69. * @}
  70. */
  71. /**
  72. * @}
  73. */
  74. #endif /* WM_WATCHDOG_H */