[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/pxa27x pxa27xhardware.h, 1.2, 1.3

Lama Nachman lnachman at users.sourceforge.net
Wed Aug 17 13:48:37 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/pxa27x
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31116

Modified Files:
	pxa27xhardware.h 
Log Message:
Added __nesc_atomic_sleep, for now it doesn't enable sleep.


Index: pxa27xhardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/pxa27x/pxa27xhardware.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pxa27xhardware.h	9 Mar 2005 23:45:54 -0000	1.2
--- pxa27xhardware.h	17 Aug 2005 20:48:35 -0000	1.3
***************
*** 110,113 ****
--- 110,114 ----
  {
    // Place PXA into idle
+ #if 0
    asm volatile (
  		"mcr p14,0,%0,c7,c0,0"
***************
*** 115,118 ****
--- 116,120 ----
  		: "r" (1)
  		);
+ #endif
  }
  
***************
*** 190,192 ****
--- 192,204 ----
  }
  
+ inline void __nesc_atomic_sleep()
+ {
+   /* 
+    * Atomically enable interrupts and sleep , 
+    * LN : FOR NOW SLEEP IS DISABLED will be adding this functionality shortly
+    */
+   __nesc_enable_interrupt();
+   return;
+ }
+ 
  #endif //TOSH_HARDWARE_H



More information about the Tinyos-beta-commits mailing list