]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/printf/printf.h
Update to allow buffer size to be changed at compile time
[tinyos-2.x.git] / tos / lib / printf / printf.h
index a7cb005a5f44077fcaa013a7647b87e5c9e6dbb3..fcaee28001588785522711cf4ffa5400bacee993 100644 (file)
 #ifndef PRINTF_H
 #define PRINTF_H
 
+#ifndef PRINTF_BUFFER_SIZE
+#define PRINTF_BUFFER_SIZE  250
+#endif
+
 #ifdef _H_msp430hardware_h
   #include <stdio.h>
 #endif
@@ -38,8 +42,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;