- Category:
- SCM
- Tags:
-
[C/C++]
[源码]
- File Size:
- 3kb
- Update:
- 2015-02-15
- Downloads:
- 0 Times
- Uploaded by:
- 大鹏集成
Description: The standard library STM32 real time clock function to realize the first is the BSP driver, including the initialization function (RTC_Init) and set the time function RTC_Set ().
The next is the correlation function in the <time.h>, I just realized I think the most important function of the
Time_t time (time_t*time)
Time_t mktime (struct TM*timeptr)
Struct TM*gmtime (const time_t*timer)
And the auxiliary function
Static int getTotalDays (int year, int month, int day)
Because the gmtime function need to use malloc function in <stdlib.h>, sometimes do not want to use this function, so I also realized a his variant function
UINT8 gmtime2 (struct TM*time, const time_t*timer)
To Search:
File list (Check if you may need any files):
rtc_time.c