homework 7

Dependencies:   mbed-rtos mbed C12832_lcd LM75B

Revision:
13:21f27ba467c2
Parent:
12:e40272e1fd8f
Child:
14:d3bb343cd5b2
--- a/main.cpp	Sat Sep 07 20:38:41 2013 +0000
+++ b/main.cpp	Sat Sep 07 20:49:26 2013 +0000
@@ -34,6 +34,17 @@
     Timeout     timeoutMetronome;
 //-------prototypes-----------------------------//------------------------------
     void initialization();                      // initialize settings.
+    
+    void ISRleftButtonRising();                 // cook-time increase.
+    void ISRleftButtonFalling();                // button-release debounce.
+    void ISRrightButtonRising();                // cook-time decrease.
+    void ISRrightButtonFalling();               // button-release debounce.
+    void ISRtopButtonRising();                  // cook start.
+    void ISRtopButtonFalling();                 // button-release debounce.
+    void ISRbottomButtonRising();               // cook stop.
+    void ISRbottomButtonFalling();              // button-release debounce.
+    void ISRcenterButtonRising();               // door state toggle.
+    void ISRcenterButtonFalling();              // button-release debounce.
 //==============================================//==============================
     int main(void) 
     {
@@ -89,19 +100,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-/*----------------------------------------------//----------------------------*/
-    void ISRleftButtonRising
-    {
-      __disable_irq();                          // debounce start.
-
-
-      
-      wait(DEBOUNCE);                           // debounce time.
-      
-      __enable_irq();                           // debounce done. 
-    } 
-/*----------------------------------------------//----------------------------*/
-    void ISRleftButtonFalling                   // button-release debounce.
+    void ISRrightButtonRising
     {
       __disable_irq();                          // debounce start.
 
@@ -112,7 +111,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonRising
+    void ISRrightButtonFalling                  // button-release debounce.
     {
       __disable_irq();                          // debounce start.
 
@@ -123,7 +122,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonFalling                   // button-release debounce.
+    void ISRtopButtonRising
     {
       __disable_irq();                          // debounce start.
 
@@ -134,7 +133,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonRising
+    void ISRtopButtonFalling                    // button-release debounce.
     {
       __disable_irq();                          // debounce start.
 
@@ -145,7 +144,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonFalling                   // button-release debounce.
+    void ISRbottomButtonRising
     {
       __disable_irq();                          // debounce start.
 
@@ -156,7 +155,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonRising
+    void ISRbottomButtonFalling                 // button-release debounce.
     {
       __disable_irq();                          // debounce start.
 
@@ -167,7 +166,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonFalling                   // button-release debounce.
+    void ISRcenterButtonRising
     {
       __disable_irq();                          // debounce start.
 
@@ -178,7 +177,7 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonRising
+    void ISRcenterButtonFalling                 // button-release debounce.
     {
       __disable_irq();                          // debounce start.
 
@@ -189,14 +188,4 @@
       __enable_irq();                           // debounce done. 
     } 
 /*----------------------------------------------//----------------------------*/
-    void ISRleftButtonFalling                   // button-release debounce.
-    {
-      __disable_irq();                          // debounce start.
-
-
-      
-      wait(DEBOUNCE);                           // debounce time.
-      
-      __enable_irq();                           // debounce done. 
-    } 
-/*----------------------------------------------//----------------------------*/
\ No newline at end of file
+ 
\ No newline at end of file