Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-stm32l0l1-src-1 by
Diff: common/rtc_time.c
- Revision:
- 85:e1a8e879a6a9
- Parent:
- 13:0645d8841f51
- Child:
- 221:8276e3a4886f
diff -r f54042cbc282 -r e1a8e879a6a9 common/rtc_time.c --- a/common/rtc_time.c Mon Feb 03 09:30:05 2014 +0000 +++ b/common/rtc_time.c Fri Feb 07 18:00:11 2014 +0000 @@ -19,11 +19,15 @@ #include "rtc_time.h" #include "us_ticker_api.h" +#ifdef __cplusplus +extern "C" { +#endif #if defined (__ICCARM__) time_t __time32(time_t *timer) #else time_t time(time_t *timer) #endif + { #if DEVICE_RTC if (!(rtc_isenabled())) { @@ -53,3 +57,7 @@ t /= 1000000 / CLOCKS_PER_SEC; // convert to processor time return t; } + +#ifdef __cplusplus +} +#endif