Mike Moore / Mbed 2 deprecated RTOS_LAB_08_problem_2

Dependencies:   mbed

Revision:
1:cc6f7a7e1b38
Parent:
0:07602282e53c
Child:
2:b77c5ff37378
diff -r 07602282e53c -r cc6f7a7e1b38 main.cpp
--- a/main.cpp	Fri Sep 06 03:42:11 2013 +0000
+++ b/main.cpp	Fri Sep 06 03:44:13 2013 +0000
@@ -14,19 +14,19 @@
         FIO2PIN) &= ~0x01;                      // AND bit 0 with 0 to set pin low.
         delay();
       }                                         // while (1)  
-    
-    
-    
-    
-    
-    
+    }                                           // main.
+/*----------------------------------------------//----------------------------*/
+    void delay(void)
+    {
+      int j;                                    // loop variable j.
+      for (j = 0; j < 1000000; j++)
+      {
+        j++;
+        j--;
+      }
     
     
-    
-    
-    
-    
-    
-    
-    
-    }                                           // main.
\ No newline at end of file
+    }
+/*----------------------------------------------//----------------------------*/
+
+/*----------------------------------------------//----------------------------*/
\ No newline at end of file