watchdog_hal.h 525 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. * @brief watchdog hal interface
  9. */
  10. #ifndef __WATCHDOG_HAL_H__
  11. #define __WATCHDOG_HAL_H__
  12. #ifdef CONFIG_WATCHDOG
  13. extern void watchdog_start(int timeout_ms);
  14. extern void watchdog_stop(void);
  15. extern void watchdog_clear(void);
  16. #else
  17. #define watchdog_start(timeout_ms) do { } while (0)
  18. #define watchdog_stop() do { } while (0)
  19. #define watchdog_clear() do { } while (0)
  20. #endif
  21. #endif //__WATCHDOG_HAL_H__