X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fprintf%2FPrintfC.nc;h=94dc3d52604678a36558c60a6eea46ce96e1dde6;hb=7e3e9dc68fd8299266a07e07357853271d424cdb;hp=a9a8b7383dcf87eb90a03ceecdc2b74eb9cc4371;hpb=f44d6d35052f388b3dd92252f299df85a96d3fac;p=tinyos-2.x.git diff --git a/tos/lib/printf/PrintfC.nc b/tos/lib/printf/PrintfC.nc index a9a8b738..94dc3d52 100644 --- a/tos/lib/printf/PrintfC.nc +++ b/tos/lib/printf/PrintfC.nc @@ -38,25 +38,29 @@ * @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; }