Fix all the following issues which we faced during 01st April internal demo 1) Display hang and jump issue 2) Sequencing issue 3) Issue with BP code

Dependencies:   SDFileSystem ds3231 program mbed testUniGraphic_150217

Fork of Int_Demo_01Apr2017_newdisplaycode_bp_nikita by nikita teggi

rtc.cpp

Committer:
nikitateggi
Date:
2017-05-08
Revision:
12:ab85607bb10a
Parent:
4:6bd81bb1790d

File content as of revision 12:ab85607bb10a:

#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
   
}