]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/printf/printf.h
Added declaration of printfflush() to header file
[tinyos-2.x.git] / tos / lib / printf / printf.h
index fcaee28001588785522711cf4ffa5400bacee993..32d7d7628a5bf33123be9f496c0b10c1a40c603b 100644 (file)
 #define PRINTF_H
 
 #ifndef PRINTF_BUFFER_SIZE
-#define PRINTF_BUFFER_SIZE  250
+#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
@@ -41,6 +49,7 @@
   #include "avr_stdio.h"
 #endif
 #include "message.h"
+int printfflush();
 
 typedef nx_struct printf_msg {
   nx_uint8_t buffer[TOSH_DATA_LENGTH];