mingw: make simavr compilable with MinGW
[simavr] / tests / attiny85_crash_gdb.c
index cfa5bb8..3bcaf59 100644 (file)
@@ -6,11 +6,11 @@
  */
 
 #include <avr/sleep.h>
+#include <avr/io.h>
 #include "avr_mcu_section.h"
 
 AVR_MCU(F_CPU, "attiny85");
 
-int value = 0;
 
 int main()
 {
@@ -19,11 +19,10 @@ int main()
         * this is not much, but that crashed the core, and should activate
         * the gdb server properly, so you can see it stopped, here
         */
-       value++;
 
        *((uint8_t*)0xdead) = 0x55;
 
        // should never reach here !
-       value++;
+
        sleep_mode();
 }