drv_wdt.h 491 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-07-29 zdzn first version
  9. */
  10. #ifndef __DRV_WDT_H__
  11. #define __DRV_WDT_H__
  12. #include <rtdef.h>
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. #include <drivers/watchdog.h>
  16. #include "bcm283x.h"
  17. struct raspi_wdt_driver
  18. {
  19. volatile rt_uint32_t base;
  20. rt_uint32_t timeout;
  21. };
  22. int rt_hw_wdt_init(void);
  23. #endif