]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Argh-- removing the volatiles breaks Blink on micaZ! Putting them
authorregehr <regehr>
Sat, 12 Jul 2008 04:44:45 +0000 (04:44 +0000)
committerregehr <regehr>
Sat, 12 Jul 2008 04:44:45 +0000 (04:44 +0000)
back in until I figure out what is going on.

tos/system/SchedulerBasicP.nc

index aadd26e50d6e4b1b08df2e7bb98963d881ec8b9d..d80968ed473120cf16f53ea35d6268a644a8a01c 100644 (file)
@@ -53,9 +53,9 @@ implementation
     NO_TASK = 255,
   };
 
-  uint8_t m_head;
-  uint8_t m_tail;
-  uint8_t m_next[NUM_TASKS];
+  volatile uint8_t m_head;
+  volatile uint8_t m_tail;
+  volatile uint8_t m_next[NUM_TASKS];
 
   // Helper functions (internal functions) intentionally do not have atomic
   // sections.  It is left as the duty of the exported interface functions to