watchdog.h 649 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WATCHDOG_H_
  6. #define _WATCHDOG_H_
  7. #include "app_manager.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. watchdog_timer_init(module_data *module_data);
  13. void
  14. watchdog_timer_destroy(watchdog_timer *wd_timer);
  15. void
  16. watchdog_timer_start(watchdog_timer *wd_timer);
  17. void
  18. watchdog_timer_stop(watchdog_timer *wd_timer);
  19. watchdog_timer *
  20. app_manager_get_watchdog_timer(void *timer);
  21. bool
  22. watchdog_startup();
  23. void
  24. watchdog_destroy();
  25. #ifdef __cplusplus
  26. } /* end of extern "C" */
  27. #endif
  28. #endif /* _WATCHDOG_H_ */