]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/telosa/chips/at45db/HplAt45dbP.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / platforms / telosa / chips / at45db / HplAt45dbP.nc
index b7e73980a5e85d53e432adf091123830ae1683b0..79fc4c009f95c136c65a0affdbb74ac1ca363a61 100644 (file)
@@ -33,7 +33,7 @@ module HplAt45dbP {
     interface HplAt45dbByte;
   }
   uses {
-               interface SpiByte as FlashSpi;
+    interface SpiByte as FlashSpi;
     interface GeneralIO as Select;
   }
 }
@@ -47,23 +47,23 @@ implementation
     call Select.set();
   }
 
-       task void idleTask() {
-               uint8_t status;
-               status = call FlashSpi.write(0);
-               if (!(status & 0x80)) {
-                       post idleTask();
-               } else {
-                       signal HplAt45dbByte.idle();
-               }
-       }
+  task void idleTask() {
+    uint8_t status;
+    status = call FlashSpi.write(0);
+    if (!(status & 0x80)) {
+      post idleTask();
+    } else {
+      signal HplAt45dbByte.idle();
+    }
+  }
 
   command void HplAt45dbByte.waitIdle() {
-               post idleTask();
+    post idleTask();
   }
 
   command bool HplAt45dbByte.getCompareStatus() {
-               uint8_t status;
-               status = call FlashSpi.write(0);
+    uint8_t status;
+    status = call FlashSpi.write(0);
     return (!(status & 0x40));
   }
 }