X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fprintf%2Fprintf.h;h=32d7d7628a5bf33123be9f496c0b10c1a40c603b;hb=a216dfd8c1cc53979c3a1a4b488c9c18185b6ae9;hp=a7cb005a5f44077fcaa013a7647b87e5c9e6dbb3;hpb=65ee8415380e435efb92f8575c61c6c8f7cadcd1;p=tinyos-2.x.git diff --git a/tos/lib/printf/printf.h b/tos/lib/printf/printf.h index a7cb005a..32d7d762 100644 --- a/tos/lib/printf/printf.h +++ b/tos/lib/printf/printf.h @@ -30,6 +30,18 @@ #ifndef PRINTF_H #define PRINTF_H +#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 @@ -37,8 +49,7 @@ #include "avr_stdio.h" #endif #include "message.h" - -#define PRINTF_BUFFER_SIZE 250 +int printfflush(); typedef nx_struct printf_msg { nx_uint8_t buffer[TOSH_DATA_LENGTH];