Support avr-libc 1.4.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 27 Nov 2005 23:31:48 +0000 (23:31 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 27 Nov 2005 23:31:48 +0000 (23:31 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@456 38d2e660-2303-0410-9eaa-f027e97ec537

drv/ser_avr.c

index e31a77dcb30794d165f53aab6e31833cb2d704c4..90d81fc429a4518bb213d897a21f52e0e819ab68 100755 (executable)
@@ -38,6 +38,9 @@
 
 /*#*
  *#* $Log$
+ *#* 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.
  *#*
 
 #include "ser.h"
 #include "ser_p.h"
-#include <cfg/config.h>
 #include "hw.h"  /* Required for bus macros overrides */
+#include <appconfig.h>
 
 #include <cfg/debug.h>
 #include <drv/timer.h>
 #include <mware/fifobuf.h>
 
-#include <avr/signal.h>
 #include <avr/io.h>
+#if defined(__AVR_LIBC_VERSION__) && (__AVR_LIBC_VERSION__ >= 10400UL)
+       #include <avr/interrupt.h>
+#else
+       #include <avr/signal.h>
+#endif
 
 
 #if !CONFIG_SER_HWHANDSHAKE