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@10:aeff3309002a, 2017-05-03 (annotated)
- Committer:
- nidhinvarghese
- Date:
- Wed May 03 05:32:37 2017 +0000
- Revision:
- 10:aeff3309002a
- Parent:
- 4:6bd81bb1790d
May2_2017(Nidhin); Stores 2 file data to 1 bp file and delete 2 Temp File.; BP value rounded Result displayed as int.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nikitateggi | 1:8316c23ec6b9 | 1 | #include "mbed.h" |
| nikitateggi | 1:8316c23ec6b9 | 2 | #include <stdio.h> |
| nikitateggi | 1:8316c23ec6b9 | 3 | #include "ds3231.h" |
| nikitateggi | 1:8316c23ec6b9 | 4 | #include "rtc.h" |
| nikitateggi | 1:8316c23ec6b9 | 5 | |
| nikitateggi | 1:8316c23ec6b9 | 6 | |
| nikitateggi | 1:8316c23ec6b9 | 7 | |
| nikitateggi | 1:8316c23ec6b9 | 8 | time_t rtc_read() |
| nikitateggi | 1:8316c23ec6b9 | 9 | { |
| nikitateggi | 1:8316c23ec6b9 | 10 | |
| nikitateggi | 1:8316c23ec6b9 | 11 | Ds3231 rtc(PTC11, PTC10); |
| nikitateggi | 4:6bd81bb1790d | 12 | time_t epoch_time1; |
| nikitateggi | 1:8316c23ec6b9 | 13 | epoch_time1 = rtc.get_epoch(); |
| nikitateggi | 4:6bd81bb1790d | 14 | |
| nikitateggi | 4:6bd81bb1790d | 15 | return epoch_time1; // return the time |
| nikitateggi | 1:8316c23ec6b9 | 16 | |
| nikitateggi | 4:6bd81bb1790d | 17 | } |
