Commit Graph

4 Commits (f6710236ef0b858e7f26e1a429c373aaf6fb8ac7)

Author SHA1 Message Date
Vincent Coubard c678ac8f50 mbed_localtime: Add support of year day.
This field is needed by the LPC43XX targets.
2017-06-11 09:48:20 +01:00
Vincent Coubard 89beb69f89 mbed_localtime: Add support of wday.
This field is necessary, it is used by several vendor RTC: Atmel, ST, NUVOTON,
NXP.
2017-06-11 09:48:19 +01:00
Vincent Coubard 45d590669e mbed_mktime: Improve documentation for doxygen. 2017-06-11 09:48:19 +01:00
Vincent Coubard f9b9bcc343 remove usage of mktime/localtime in favor of dedicated functions.
The use of mktime was causing a fault when called in interrupt handler because on GCC it lock the mutex protecting the environment, To overcome this issue, this patch add dedicated routine to convert a time_t into a tm and vice versa.
In the process mktime has been optimized and is now an order of magnitude faster than the routines present in the C library.
2017-06-11 09:48:18 +01:00