mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
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