X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fprintf%2Fprintf.h;h=835e40e0a7eeb8ea219fbb0bb569a21cb41bfb96;hb=7e3e9dc68fd8299266a07e07357853271d424cdb;hp=370f8f8949e63b4ce39675a6f2c8b91cda49ef21;hpb=f1ffeb24ad1dd1ac419607bae23997e6660b0a4d;p=tinyos-2.x.git diff --git a/tos/lib/printf/printf.h b/tos/lib/printf/printf.h index 370f8f89..835e40e0 100644 --- a/tos/lib/printf/printf.h +++ b/tos/lib/printf/printf.h @@ -30,17 +30,32 @@ #ifndef PRINTF_H #define PRINTF_H -#include +#ifndef PRINTF_BUFFER_SIZE +#define PRINTF_BUFFER_SIZE 250 +#endif + +#if PRINTF_BUFFER_SIZE > 255 + #define PrintfQueueC BigQueueC + #define PrintfQueue BigQueue +#else + #define PrintfQueueC QueueC + #define PrintfQueue Queue +#endif + +#ifdef _H_msp430hardware_h + #include +#endif +#ifdef _H_atmega128hardware_H + #include "avr_stdio.h" +#endif #include "message.h" -#define PRINTF_BUFFER_SIZE 250 - typedef nx_struct printf_msg { nx_uint8_t buffer[TOSH_DATA_LENGTH]; -} printf_msg; +} printf_msg_t; enum { - AM_PRINTFMSG = 100, + AM_PRINTF_MSG = 100, }; #endif //PRINTF_H