-

Dependents:   GPSXbee_1_1 GPSXbee_1_0

Revision:
1:d4cbfcb2be46
Parent:
0:8b33ba38cc3a
--- a/Beacon.h	Fri Jul 04 09:51:12 2014 +0000
+++ b/Beacon.h	Tue Dec 16 13:00:07 2014 +0000
@@ -3,6 +3,7 @@
 #include "GPS.h"
 #include "EthernetPowerControl.h"
 #include "MODSERIAL.h"
+#include "SDFileSystem.h"
 
 #define XBEETIMEOUT 5
 
@@ -11,6 +12,7 @@
 public:
     Beacon(PinName gpsTx, PinName gpsRx, PinName xbTx, PinName xbRx, int freq, int len);
     GPS gps;
+    SDFileSystem sd;
     bool init();
     void parseXbee();
     void parseGpsData();
@@ -36,6 +38,11 @@
     void ppsSync();
     void readDipSwitch();
     void initDipSwitch();
+    
+    bool initSD();
+    bool SDEnabled;
+    // SD card detect pin
+    DigitalIn CD;
    
     // Pins are all bound to a mbed pin in the constructor
     // Digital pins for setting the Timing offset