]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/printf/printf.h
Updated Printf library to new way of not requiring explicit wiring of any interfaces...
[tinyos-2.x.git] / tos / lib / printf / printf.h
index a7cb005a5f44077fcaa013a7647b87e5c9e6dbb3..835e40e0a7eeb8ea219fbb0bb569a21cb41bfb96 100644 (file)
 #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 <stdio.h>
 #endif
@@ -38,8 +50,6 @@
 #endif
 #include "message.h"
 
-#define PRINTF_BUFFER_SIZE 250
-
 typedef nx_struct printf_msg {
   nx_uint8_t buffer[TOSH_DATA_LENGTH];
 } printf_msg_t;