]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/at45db/HplAt45dbP.nc
Added TosThreads support for Mulle.
[tinyos-2.x.git] / tos / platforms / mulle / chips / at45db / HplAt45dbP.nc
index fa206370cec243aa4b18eb16876e9474195c9b7c..fbfbdd0e1a2cc1f683c5bf0e6078df960aeabd98 100644 (file)
@@ -69,6 +69,8 @@
  *
  * @author Henrik Makitaavola <henrik.makitaavola@gmail.com>
  */
+#include "m16c62p_printf.h"
 module HplAt45dbP
 {
   provides
@@ -91,6 +93,11 @@ implementation
   // TODO(Henrik) Move init code to a SplitControl interface and
   //              change the busy wait into a TimerMilli.startOneShot.
   command error_t Init.init() {
+       printf("Ad45db init\n");
+       call WP.makeOutput();
+       call WP.set();
+       call RESET.makeOutput();
+       call RESET.set();
     call Select.makeOutput();
     call Select.set();
     call VCC.makeOutput();