]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/at45db/HplAt45dbP.nc
mulle platfor modification, flsh storage, more lowpower, softi2c improvements
[tinyos-2.x.git] / tos / platforms / mulle / chips / at45db / HplAt45dbP.nc
index 021e16674eecdc8d57bc63cdcc017b97c10e0f9f..fa206370cec243aa4b18eb16876e9474195c9b7c 100644 (file)
@@ -69,7 +69,6 @@
  *
  * @author Henrik Makitaavola <henrik.makitaavola@gmail.com>
  */
-
 module HplAt45dbP
 {
   provides
@@ -89,11 +88,15 @@ module HplAt45dbP
 }
 implementation
 {
+  // TODO(Henrik) Move init code to a SplitControl interface and
+  //              change the busy wait into a TimerMilli.startOneShot.
   command error_t Init.init() {
     call Select.makeOutput();
     call Select.set();
     call VCC.makeOutput();
     call VCC.clr();
+       // The device needs 20ms before is accepts a write.
+       call BusyWait.wait(20000);
     return SUCCESS;
   }