bsp_date.h 263 B

123456789101112131415161718
  1. #ifndef __DATE_H
  2. #define __DATE_H
  3. #include <rtthread.h>
  4. typedef struct {
  5. int tm_sec;
  6. int tm_min;
  7. int tm_hour;
  8. int tm_mday;
  9. int tm_mon;
  10. int tm_year;
  11. int tm_wday;
  12. }rtc_time;
  13. uint32_t mktimev(rtc_time *tm);
  14. void to_tm(uint32_t tim, rtc_time * tm);
  15. #endif