Add option to the USB XMEGAs to set the USB bus interrupt priority level.
[pub/lufa.git] / LUFA / Drivers / USB / Core / Device.h
index 0e86624..68e5e93 100644 (file)
                #include "USBInterrupt.h"\r
                #include "Endpoint.h"\r
 \r
+       /* Enable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       extern "C" {\r
+               #endif\r
+\r
        /* Preprocessor Checks: */\r
                #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
                        #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
                        #include "AVR8/Device_AVR8.h"\r
                #elif (ARCH == ARCH_UC3)\r
                        #include "UC3/Device_UC3.h"\r
+               #elif (ARCH == ARCH_XMEGA)\r
+                       #include "XMEGA/Device_XMEGA.h"         \r
+               #endif\r
+\r
+       /* Disable C linkage for C++ Compilers: */\r
+               #if defined(__cplusplus)\r
+                       }\r
                #endif\r
 \r
 #endif\r