![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
vr1.1
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of CDMS_RTOS_v1_1 by
Diff: RTC.cpp
- Revision:
- 15:2c8629da6ec9
- Parent:
- 14:cf9f12b6887d
- Child:
- 16:7428828a5da2
diff -r cf9f12b6887d -r 2c8629da6ec9 RTC.cpp --- a/RTC.cpp Tue Jul 14 10:14:36 2015 +0000 +++ b/RTC.cpp Thu Jul 16 09:42:13 2015 +0000 @@ -1,9 +1,10 @@ #include "mbed.h" #include "RTC.h" #include "all_funcs.h" +#include "pinconfig.h" -SPI rtc_spi(PTD6,PTD7,PTD5); // MOSI,MISO, CLOCK microcontroller(in order) -DigitalOut rtc_cs(PTD4); //Slave Select pin +SPI rtc_spi(PIN2, PIN1, PIN3); // MOSI,MISO, CLOCK microcontroller(in order) +DigitalOut rtc_cs(PIN26); //Slave Select pin //Serial pc(USBTX,USBRX); void FCTN_INIT_RTC()