wdt.h 587 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2019-2020 Alibaba Group Holding Limited
  3. */
  4. #ifndef __AOS_WDT_H__
  5. #define __AOS_WDT_H__
  6. #include <stdint.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. uint32_t aos_wdt_index();
  11. void aos_wdt_debug(int en);
  12. int aos_wdt_hw_enable(int id, int ms);
  13. void aos_wdt_hw_disable(int id);
  14. void aos_wdt_attach(uint32_t index, void (*will)(void *), void *args);
  15. void aos_wdt_detach(uint32_t index);
  16. int aos_wdt_exists(uint32_t index);
  17. void aos_wdt_feed(uint32_t index, int max_time);
  18. void aos_wdt_show(uint32_t index);
  19. void aos_wdt_showall();
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif