export test

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Int_Demo_09May2017_Suhasini_HRavg_Nikita_ili9341 by nikita teggi

Revision:
4:6bd81bb1790d
Parent:
3:9a06c2bed650
Child:
13:5d3b478ea9c7
--- a/ecgg.cpp	Fri Feb 10 10:39:13 2017 +0000
+++ b/ecgg.cpp	Wed Mar 01 18:49:33 2017 +0000
@@ -25,23 +25,21 @@
     Timer t;
     unsigned char chk = 1;
     pc.baud(baud_rate);
-    freqset(); 
-    setupfunc();
+    freqset();               // setting the frequency
+    setupfunc();              
     ecgsetupfunc();
     chk = 1;
-   // t.start();
-   sd_open_ECGfile(pid);
+   sd_open_ECGfile(pid);        // opening the ecg file
    
  for(int i=0; i<N_ECG; i++)
    {
      concatenate_value2= readvalue();
-     sd_write(concatenate_value2);
+     sd_write(concatenate_value2);               // writing into the sd card
      pc.printf( "%d\n", concatenate_value2);
    } 
    
-   sd_close();
-  // t.stop();
-  // printf( "%f\n", t.read());
+   sd_close();          // closing the file
+
  
  
  }    // End of main function