working version of song control with initialization from sd card

Dependencies:   MFRC522 NRF2401P SDFileSystem SPI_TFT_ILI9341 TFT_fonts mbed

Fork of Song_Control by Malcolm McCulloch

Revision:
5:88c516cf34e6
Parent:
3:86773d65ed58
Child:
6:00a132a076d5
--- a/hub.cpp	Sun Feb 21 00:04:16 2016 +0000
+++ b/hub.cpp	Mon Feb 29 10:55:39 2016 +0000
@@ -232,9 +232,9 @@
     printf("Tx %s [nrf:%s] \n\r", txBuff,nrf1.statusString());
 #endif  
 }
-// -----------------------------------------------------------------------------
-// Initializaton
-// -----------------------------------------------------------------------------
+/*************************************************************************************************/
+/* Initialization */
+/*************************************************************************************************/
 /**
  * Initialize system on reset and set the time from the terminal
  */
@@ -521,7 +521,7 @@
 }
 
 /*************************************************************************************************/
-/* Housekeeping - flag clearing before entering new sections of code */
+/* Housekeeping - flag clearing, cancelling, check time, update user table  */
 /*************************************************************************************************/
 /*
  *  Reset all user initiated flags. Useful after sequences of events where flags may have 
@@ -537,9 +537,6 @@
     flagIncubatorRfidH = 0;
 }
 
-/*************************************************************************************************/
-/* Things to do after detecting an interrupt (from user input or system generated) */
-/*************************************************************************************************/
 /*
  * User presses the button corresponding to an exit. Returns to home screen
  * after logging the action.
@@ -628,6 +625,9 @@
     fclose(fp);
 }
 
+/*************************************************************************************************/
+/* Battery Services */
+/*************************************************************************************************/
 /**
  *  Do if Battery RFID flag is set. Read RFID tag and check user status. 
  *  If there's a valid battery subscription, display drop off and/or pick up. 
@@ -862,6 +862,9 @@
     return;
 }
 
+/*************************************************************************************************/
+/* Misc Services */
+/*************************************************************************************************/
 /**
  *  Do if Posho RFID flag is set. Add posho functionality later.
  */