X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fmulle%2Fchips%2Fat45db%2FHplAt45dbP.nc;h=fa206370cec243aa4b18eb16876e9474195c9b7c;hb=2d74d98ec380d6cf237814287406c993977a60e3;hp=021e16674eecdc8d57bc63cdcc017b97c10e0f9f;hpb=e0397b07a5a6ca7d8d0e9e6d33f317e4459327c6;p=tinyos-2.x.git diff --git a/tos/platforms/mulle/chips/at45db/HplAt45dbP.nc b/tos/platforms/mulle/chips/at45db/HplAt45dbP.nc index 021e1667..fa206370 100644 --- a/tos/platforms/mulle/chips/at45db/HplAt45dbP.nc +++ b/tos/platforms/mulle/chips/at45db/HplAt45dbP.nc @@ -69,7 +69,6 @@ * * @author Henrik Makitaavola */ - 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; }