// $Id$
-/* tab:4
+/*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
* downloading, copying, installing or using the software you agree to
* this license. If you do not agree to this license, do not download,
#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"
{
__nesc_atomic_t result = SREG;
__nesc_disable_interrupt();
+ asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
return result;
}
inline void
__nesc_atomic_end(__nesc_atomic_t original_SREG) @spontaneous()
{
+ asm volatile("" : : : "memory"); /* ensure atomic section effect visibility */
SREG = original_SREG;
}
#endif
}
#endif //_H_atmega128hardware_H
+
+