]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/telosb/MotePlatformC.nc
mark more modules as safe code
[tinyos-2.x.git] / tos / platforms / telosb / MotePlatformC.nc
index d471bd164e13f55356eb84efb20b32f3e1d83e07..1ba21eac660db8dc594e9d72d3aa32240167e9aa 100644 (file)
@@ -1,4 +1,4 @@
-module MotePlatformC {
+module MotePlatformC @safe() {
   provides interface Init;
 }
 implementation {
@@ -49,11 +49,8 @@ implementation {
     TOSH_FLASH_M25P_DP_bit(TRUE);   // 7
 
     TOSH_SET_FLASH_CS_PIN();
-
+    TOSH_SET_UCLK0_PIN();
     TOSH_SET_SIMO0_PIN();
-    TOSH_MAKE_SIMO0_INPUT();
-    TOSH_MAKE_UCLK0_INPUT();
-    TOSH_CLR_FLASH_HOLD_PIN();
   }
 
   command error_t Init.init() {
@@ -67,23 +64,23 @@ implementation {
        P5SEL = 0;
        P6SEL = 0;
 
-       P1DIR = 0xe0;
        P1OUT = 0x00;
+       P1DIR = 0xe0;
  
+       P2OUT = 0x30;
        P2DIR = 0x7b;
-       P2OUT = 0x10;
 
-       P3DIR = 0xf1;
        P3OUT = 0x00;
+       P3DIR = 0xf1;
 
-       P4DIR = 0xfd;
        P4OUT = 0xdd;
+       P4DIR = 0xfd;
 
-       P5DIR = 0xff;
        P5OUT = 0xff;
+       P5DIR = 0xff;
 
-       P6DIR = 0xff;
        P6OUT = 0x00;
+       P6DIR = 0xff;
 
        P1IE = 0;
        P2IE = 0;