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.
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
rtc.cpp
- Committer:
- nidhinvarghese
- Date:
- 2017-05-03
- Revision:
- 10:aeff3309002a
- Parent:
- 4:6bd81bb1790d
File content as of revision 10:aeff3309002a:
#include "mbed.h"
#include <stdio.h>
#include "ds3231.h"
#include "rtc.h"
time_t rtc_read()
{
Ds3231 rtc(PTC11, PTC10);
time_t epoch_time1;
epoch_time1 = rtc.get_epoch();
return epoch_time1; // return the time
}
