   if(!State.serialOn)
     enterSleep();
 }
+
+// DANIEL
+/* Function Title: INT0_ISR()
+ * 
+ * Friendly Name:  Sensor Interrupt Service Routine (ISR)
+ * 
+ * Description: increments the value of the pulse count variable by one, each time this 
+ *              function is called by hardware.
+ */
+void INT0_ISR()
+{
+  State.pulseCount += 1;  // increment pulseCount variable by one
+}
+
+// DANIEL
+/* Function Title: INT1_ISR()
+ * 
+ * Friendly Name:  Real Time Clock OUT Interrupt Service Routine (ISR)
+ * 
+ * Description: sets the 4-second flag to true each time this function
+ *              is called by hardware. The Real Time Clock generates
+ *              the signal that calls this ISR once every four seconds.
+ */
+void INT1_ISR()
+{
+  State.flag4 = true;     // sets the "four second flag" to true
+}

 *    Setup interrupts
\*********************************************************************************/

State_t State;                    // System State structure
File dataFile;                    // File pointer for SD Card operations

void setup() 
{
  resetState(&State);             // Setup the System State structure
  
  disableUnneededPeripherals();   // Disable unneeded peripherals
}


  *   call function handleSerial();
  \*****************************************/
  if(State.serialOn)
    handleSerial(&State, &Date);

  // DANIEL
  /*****************************************\
