[Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/printf avr_stdio.h, NONE,
1.1 printf.h, 1.6, 1.7
Kevin Klues
klueska at users.sourceforge.net
Mon Aug 20 09:43:45 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/printf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv30153/tos/lib/printf
Modified Files:
printf.h
Added Files:
avr_stdio.h
Log Message:
Added avr_stdio.h file to be backwards compatible with old avr-libc library.
--- NEW FILE: avr_stdio.h ---
/* Copyright (c) 2002, 2005, Joerg Wunsch
All rights reserved.
Portions of documentation Copyright (c) 1990, 1991, 1993
The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
[...1055 lines suppressed...]
#endif
#ifdef __cplusplus
}
#endif
/*@}*/
/*
* The following constants are currently not used by avr-libc's
* stdio subsystem. They are defined here since the gcc build
* environment expects them to be here.
*/
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#endif /* __ASSEMBLER */
#endif /* _STDLIB_H_ */
Index: printf.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/printf/printf.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** printf.h 20 Apr 2007 01:14:13 -0000 1.6
--- printf.h 20 Aug 2007 16:43:43 -0000 1.7
***************
*** 31,35 ****
#define PRINTF_H
! #include <stdio.h>
#include "message.h"
--- 31,40 ----
#define PRINTF_H
! #ifdef _H_msp430hardware_h
! #include <stdio.h>
! #endif
! #ifdef _H_atmega128hardware_H
! #include "avr_stdio.h"
! #endif
#include "message.h"
More information about the Tinyos-2-commits
mailing list