* @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;
}