drv_wdt.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _DRV_WDT_H_
  13. #define _DRV_WDT_H_
  14. #include <stdint.h>
  15. #include <stdbool.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /**
  20. * \brief start the watchdog
  21. *
  22. * \param resetms reset the chip if not feed the watchdog more than reset ms
  23. * \param feedms feed watchdog every feed ms
  24. * if feedms == OSI_WAIT_FOREVER not feed the watchdog
  25. * \return
  26. * - true on success else fail
  27. */
  28. bool drvWatchdogStart(uint32_t resetms, uint32_t feedms);
  29. /**
  30. * \brief stop the watchdog
  31. */
  32. void drvWatchdogStop();
  33. #ifdef CONFIG_QUEC_PROJECT_FEATURE
  34. void quec_dev_feed_wdt(void);
  35. #endif
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif