rtc_dm.h 553 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-12-06 GuEe-GUI first version
  9. */
  10. #ifndef __RTC_DM_H__
  11. #define __RTC_DM_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. #include <sys/time.h>
  16. int rtc_dev_set_name(struct rt_device *rtc_dev);
  17. time_t rtc_wkalarm_to_timestamp(struct rt_rtc_wkalarm *alarm);
  18. void rtc_timestamp_to_wkalarm(time_t timestamp, struct rt_rtc_wkalarm *alarm);
  19. #endif /* __RTC_DM_H__ */