fuck this

Dependencies:   BMP280

Revision:
21:6e733076f49c
Parent:
19:40c721f01ed2
--- a/SDCard.h	Tue Jan 09 11:53:11 2018 +0000
+++ b/SDCard.h	Tue Jan 09 20:51:19 2018 +0000
@@ -9,13 +9,14 @@
 #include "SDBlockDevice.h"
 #include "FATFileSystem.h"
 #include "LCD.h"
+#include "Logging.h"
 
 //Hardware devices
-extern InterruptIn SD_WP;   //Pin that indicates if the card has been inserted (active low)
-extern InterruptIn UserButton;//Demount request
-extern SDBlockDevice sd;      //SD Card device
-extern DigitalOut GreenLED;   //Shows its safe to demount
-extern DigitalOut SDCardStatusLED;//Shows if the card is inserted
+extern InterruptIn SD_WP;          //Pin that indicates if the card has been inserted (active low)
+extern InterruptIn UserButton;     //Demount request
+extern SDBlockDevice sd;           //SD Card device
+extern DigitalOut GreenLED;        //Shows its safe to demount
+extern DigitalOut SDCardStatusLED; //Shows if the card is inserted
 
 enum SDCardStates{INSERTED,REMOVED,DISMOUNTREQUEST};
 
@@ -31,9 +32,14 @@
 void SDCardInit(void);
 //Starts the thread and sets up the interrupts
 void SDCardRemovedISR(void);
-//
+//Interrupt runs when SD card is removed
 void SDCardInsertedISR(void);
+//Interrupt runs when SD card is inserted
 void SDCardButtonISR(void);
+//Interrupt runs when user button is pressed
 void SDCardCode(void);
+//Thread code which handles writing to SD card
+void antiBounceISR(void);
+//Prevent button bounce
 
 #endif
\ No newline at end of file