drv_wdt.h 526 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2018, Synwit Technology Co.,Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-12-10 Zohar_Lee first version
  9. * 2020-07-10 lik rewrite
  10. */
  11. #ifndef __DRV_WDT_H__
  12. #define __DRV_WDT_H__
  13. #include "board.h"
  14. struct swm_wdt_cfg
  15. {
  16. const char *name;
  17. WDT_TypeDef *WDTx;
  18. };
  19. struct swm_wdt
  20. {
  21. struct swm_wdt_cfg *cfg;
  22. struct rt_watchdog_device wdt_device;
  23. };
  24. int rt_hw_wdt_init(void);
  25. #endif /* __DRV_WDT_H__ */