1
0

rtc.h 727 B

1234567891011121314151617181920212223242526
  1. /*
  2. * File : rtc.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2012-10-10 aozima first version.
  13. */
  14. #ifndef RTC_H_INCLUDED
  15. #define RTC_H_INCLUDED
  16. extern rt_err_t set_date(rt_uint32_t year,
  17. rt_uint32_t month,
  18. rt_uint32_t day);
  19. extern rt_err_t set_time(rt_uint32_t hour,
  20. rt_uint32_t minute,
  21. rt_uint32_t second);
  22. #endif // RTC_H_INCLUDED