X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fser_avr.c;h=5e0dc4d87fb25b0febb398f5d23e4736361f09ca;hb=c49c99e64ee64ad490b2aea2d6c6d8f9f6d225db;hp=ac31b3fcc85f95546a56e0f1f7162370f993a86e;hpb=22853ba2260f6dd8dc0e5ccafb95e75fc36cfa29;p=bertos.git diff --git a/drv/ser_avr.c b/drv/ser_avr.c index ac31b3fc..5e0dc4d8 100755 --- a/drv/ser_avr.c +++ b/drv/ser_avr.c @@ -3,7 +3,7 @@ * * * \brief AVR UART and SPI I/O driver @@ -38,6 +38,15 @@ /*#* *#* $Log$ + *#* Revision 1.30 2006/02/17 22:23:06 bernie + *#* Update POSIX serial emulator. + *#* + *#* Revision 1.29 2005/11/27 23:31:48 bernie + *#* Support avr-libc 1.4. + *#* + *#* Revision 1.28 2005/11/04 16:20:02 bernie + *#* Fix reference to README.devlib in header. + *#* *#* Revision 1.27 2005/07/03 15:19:31 bernie *#* Doxygen fix. *#* @@ -117,15 +126,19 @@ #include "ser.h" #include "ser_p.h" -#include #include "hw.h" /* Required for bus macros overrides */ +#include #include #include #include -#include #include +#if defined(__AVR_LIBC_VERSION__) && (__AVR_LIBC_VERSION__ >= 10400UL) + #include +#else + #include +#endif #if !CONFIG_SER_HWHANDSHAKE @@ -654,7 +667,7 @@ static struct AvrSerial UARTDescs[SER_CNT] = } }; -struct SerialHardware* ser_hw_getdesc(int unit) +struct SerialHardware *ser_hw_getdesc(int unit) { ASSERT(unit < SER_CNT); return &UARTDescs[unit].hw;