X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fprintf%2Fprintf.h;h=0f2f051746d70b088a4ebb843e911dd13d871f23;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=32d7d7628a5bf33123be9f496c0b10c1a40c603b;hpb=a216dfd8c1cc53979c3a1a4b488c9c18185b6ae9;p=tinyos-2.x.git diff --git a/tos/lib/printf/printf.h b/tos/lib/printf/printf.h index 32d7d762..0f2f0517 100644 --- a/tos/lib/printf/printf.h +++ b/tos/lib/printf/printf.h @@ -44,15 +44,25 @@ #ifdef _H_msp430hardware_h #include -#endif +#else #ifdef _H_atmega128hardware_H #include "avr_stdio.h" +#else +#ifdef __M16C62PHARDWARE_H__ + #include "m16c62p_printf.h" +#else + #include "generic_printf.h" +#endif +#endif #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 {