]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/printf/PrintfC.nc
Updated Printf library to new way of not requiring explicit wiring of any interfaces...
[tinyos-2.x.git] / tos / lib / printf / PrintfC.nc
index a9a8b7383dcf87eb90a03ceecdc2b74eb9cc4371..94dc3d52604678a36558c60a6eea46ce96e1dde6 100644 (file)
  * @version $Revision$
  * @date $Date$
  */
-
 #include "printf.h"
 
 configuration PrintfC {
   provides {
-       interface SplitControl as PrintfControl;
-       interface PrintfFlush;
+    interface Boot;
   }
+  uses interface Boot as MainBoot @exactlyonce();
 }
 implementation {
   components SerialActiveMessageC;
   components new SerialAMSenderC(AM_PRINTF_MSG);
-  components PrintfP;
+  components new PrintfQueueC(uint8_t, PRINTF_BUFFER_SIZE) as QueueC;
 
-  PrintfControl = PrintfP;
-  PrintfFlush = PrintfP;
+  components PrintfP;
+  components LedsC;
+  
+  MainBoot = PrintfP.MainBoot;
+  Boot = PrintfP.Boot;
   
   PrintfP.SerialControl -> SerialActiveMessageC;
+  PrintfP.Queue -> QueueC;
   PrintfP.AMSend -> SerialAMSenderC;
   PrintfP.Packet -> SerialAMSenderC;
+  PrintfP.Leds -> LedsC;
 }