drv_rtc.h 481 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-09-15 flyingcys 1st version
  9. */
  10. #ifndef DRV_RTC_H__
  11. #define DRV_RTC_H__
  12. #include <rtdevice.h>
  13. #ifdef RT_USING_ALARM
  14. #include <alarm.h>
  15. #endif
  16. struct rt_rtc_device
  17. {
  18. struct rt_device device;
  19. #ifdef RT_USING_ALARM
  20. struct rt_rtc_wkalarm wkalarm;
  21. #endif
  22. };
  23. int wm_hw_rtc_init(void);
  24. #endif