Rename AVRU4U6U9 peripheral driver directory to AVR8.
[pub/USBasp.git] / LUFA / Scheduler / Scheduler.h
index 3191799..084fb1e 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
+     Copyright (C) Dean Camera, 2010.\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
 #define __SCHEDULER_H__\r
 \r
        /* Includes: */\r
 #define __SCHEDULER_H__\r
 \r
        /* Includes: */\r
-               #include <avr/io.h>\r
+       #if defined(__AVR32__)\r
+               #include <avr32/io.h>\r
                #include <stdbool.h>\r
                #include <stdbool.h>\r
-               \r
+       #else\r
+               #include <avr/io.h>\r
                #include <util/atomic.h>\r
                #include <util/atomic.h>\r
+               #include <stdbool.h>\r
+       #endif\r
 \r
 \r
-               #include "../Common/Common.h"\r
+       #include "../Common/Common.h"\r
 \r
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r
 \r
        /* Enable C linkage for C++ Compilers: */\r
                #if defined(__cplusplus)\r