]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/atm128hardware.h
added avr libc version switch for includes
[tinyos-2.x.git] / tos / chips / atm128 / atm128hardware.h
index 7ef731ca8704132217d2a37be097df9361c141bb..f1b26a0e93f6f776c23539b92bdfc00051618915 100644 (file)
 #define _H_atmega128hardware_H
 
 #include <avr/io.h>
-#include <avr/signal.h>
+#if __AVR_LIBC_VERSION__ >= 10400UL
+#include <avr/interrupt.h>
+#else
 #include <avr/interrupt.h>
+#include <avr/signal.h>
+#endif
 #include <avr/wdt.h>
 #include <avr/pgmspace.h>
 #include "atm128const.h"
@@ -129,4 +133,4 @@ mcu_power_t mcombine(mcu_power_t m1, mcu_power_t m2) {
   return (m1 < m2)? m1: m2;
 }
 
-#endif //_H_atmega128hardware_H
+#endif //_H_atmega128hardware_H
\ No newline at end of file