]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/printf/printf.h
mulle platfor modification, flsh storage, more lowpower, softi2c improvements
[tinyos-2.x.git] / tos / lib / printf / printf.h
index fcaee28001588785522711cf4ffa5400bacee993..c70a791f7d7f1a91a64a80dd665d2f52c89f30cd 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
 #ifdef _H_atmega128hardware_H
   #include "avr_stdio.h"
 #endif
+#ifdef __M16C62PHARDWARE_H__ 
+#include "m16c62p_printf.h"
+#endif
 #include "message.h"
+int printfflush();
 
+#ifndef PRINTF_MSG_LENGTH
+#define PRINTF_MSG_LENGTH      28
+#endif
 typedef nx_struct printf_msg {
-  nx_uint8_t buffer[TOSH_DATA_LENGTH];
+  nx_uint8_t buffer[PRINTF_MSG_LENGTH];
 } printf_msg_t;
 
 enum {