]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - protocol/lufa/LUFA-120730/LUFA/Drivers/USB/Core/USBMode.h
Remove core library and build files
[qmk_firmware.git] / protocol / lufa / LUFA-120730 / LUFA / Drivers / USB / Core / USBMode.h
diff --git a/protocol/lufa/LUFA-120730/LUFA/Drivers/USB/Core/USBMode.h b/protocol/lufa/LUFA-120730/LUFA/Drivers/USB/Core/USBMode.h
deleted file mode 100644 (file)
index 8a52b09..0000000
+++ /dev/null
@@ -1,286 +0,0 @@
-/*\r
-             LUFA Library\r
-     Copyright (C) Dean Camera, 2012.\r
-\r
-  dean [at] fourwalledcubicle [dot] com\r
-           www.lufa-lib.org\r
-*/\r
-\r
-/*\r
-  Copyright 2012  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
-  without fee, provided that the above copyright notice appear in\r
-  all copies and that both that the copyright notice and this\r
-  permission notice and warranty disclaimer appear in supporting\r
-  documentation, and that the name of the author not be used in\r
-  advertising or publicity pertaining to distribution of the\r
-  software without specific, written prior permission.\r
-\r
-  The author disclaim all warranties with regard to this\r
-  software, including all implied warranties of merchantability\r
-  and fitness.  In no event shall the author be liable for any\r
-  special, indirect or consequential damages or any damages\r
-  whatsoever resulting from loss of use, data or profits, whether\r
-  in an action of contract, negligence or other tortious action,\r
-  arising out of or in connection with the use or performance of\r
-  this software.\r
-*/\r
-\r
-/** \file\r
- *  \brief USB mode and feature support definitions.\r
- *  \copydetails Group_USBMode\r
- *\r
- *  \note This file should not be included directly. It is automatically included as needed by the USB driver\r
- *        dispatch header located in LUFA/Drivers/USB/USB.h.\r
- */\r
-\r
-/** \ingroup Group_USB\r
- *  \defgroup Group_USBMode USB Mode Tokens\r
- *  \brief USB mode and feature support definitions.\r
- *\r
- *  This file defines macros indicating the type of USB controller the library is being compiled for, and its\r
- *  capabilities. These macros may then be referenced in the user application to selectively enable or disable\r
- *  code sections depending on if they are defined or not.\r
- *\r
- *  After the inclusion of the master USB driver header, one or more of the following tokens may be defined, to\r
- *  allow the user code to conditionally enable or disable code based on the USB controller family and allowable\r
- *  USB modes. These tokens may be tested against to eliminate code relating to a USB mode which is not enabled for\r
- *  the given compilation.\r
- *\r
- *  @{\r
- */\r
-\r
-#ifndef __USBMODE_H__\r
-#define __USBMODE_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
-               #endif\r
-\r
-       /* Public Interface - May be used in end-application: */\r
-       #if defined(__DOXYGEN__)\r
-               /** Indicates that the target AVR microcontroller belongs to the Series 2 AVR8 USB controller\r
-                *  (i.e. AT90USBxxx2 or ATMEGAxxU2) when defined.\r
-                */\r
-               #define USB_SERIES_2_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the Series 4 AVR8 USB controller\r
-                *  (i.e. ATMEGAxxU4) when defined.\r
-                */\r
-               #define USB_SERIES_4_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the Series 6 AVR8 USB controller\r
-                *  (i.e. AT90USBxxx6) when defined.\r
-                */\r
-               #define USB_SERIES_6_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the Series 7 AVR8 USB controller\r
-                *  (i.e. AT90USBxxx7) when defined.\r
-                */\r
-               #define USB_SERIES_7_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3A0 Series USB controller\r
-                *  (i.e. AT32UC3A0*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3A0_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3A1 Series USB controller\r
-                *  (i.e. AT32UC3A1*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3A1_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3A3 Series USB controller\r
-                *  (i.e. AT32UC3A3*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3A3_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3A4 Series USB controller\r
-                *  (i.e. AT32UC3A4*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3A4_AVR\r
-               \r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3B0 Series USB controller\r
-                *  (i.e. AT32UC3B0*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3B0_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the AVR32 UC3B1 Series USB controller\r
-                *  (i.e. AT32UC3B1*) when defined.\r
-                */\r
-               #define USB_SERIES_UC3B1_AVR\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA A1U Series USB controller\r
-                *  (i.e. ATXMEGA*A1U) when defined.\r
-                */\r
-               #define USB_SERIES_A1U_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA A3U Series USB controller\r
-                *  (i.e. ATXMEGA*A3U) when defined.\r
-                */\r
-               #define USB_SERIES_A3U_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA A4U Series USB controller\r
-                *  (i.e. ATXMEGA*A4U) when defined.\r
-                */\r
-               #define USB_SERIES_A4U_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA B1 Series USB controller\r
-                *  (i.e. ATXMEGA*B1) when defined.\r
-                */\r
-               #define USB_SERIES_B1_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA B3 Series USB controller\r
-                *  (i.e. ATXMEGA*B3) when defined.\r
-                */\r
-               #define USB_SERIES_B3_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA C3 Series USB controller\r
-                *  (i.e. ATXMEGA*C3) when defined.\r
-                */\r
-               #define USB_SERIES_C3_XMEGA\r
-\r
-               /** Indicates that the target AVR microcontroller belongs to the XMEGA C4 Series USB controller\r
-                *  (i.e. ATXMEGA*C4) when defined.\r
-                */\r
-               #define USB_SERIES_C4_XMEGA\r
-\r
-               /** Indicates that the target microcontroller and compilation settings allow for the\r
-                *  target to be configured in USB Device mode when defined.\r
-                */\r
-               #define USB_CAN_BE_DEVICE\r
-\r
-               /** Indicates that the target microcontroller and compilation settings allow for the\r
-                *  target to be configured in USB Host mode when defined.\r
-                */\r
-               #define USB_CAN_BE_HOST\r
-\r
-               /** Indicates that the target microcontroller and compilation settings allow for the\r
-                *  target to be configured in either USB Device or Host mode when defined.\r
-                */\r
-               #define USB_CAN_BE_BOTH\r
-       #else\r
-               /* Macros: */\r
-                       #if (defined(__AVR_AT90USB162__) || defined(__AVR_AT90USB82__)  || \\r
-                            defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__))\r
-                               #define USB_SERIES_2_AVR\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega16U4__))\r
-                               #define USB_SERIES_4_AVR\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATmega32U6__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__))\r
-                               #define USB_SERIES_6_AVR\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1287__))\r
-                               #define USB_SERIES_7_AVR\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3A0512__) || defined(__AVR32_UC3A0256__) || \\r
-                              defined(__AVR32_UC3A0128__) || defined(__AVR32_UC3A064__))\r
-                               #define USB_SERIES_UC3A0_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3A1512__) || defined(__AVR32_UC3A1256__) || \\r
-                              defined(__AVR32_UC3A1128__) || defined(__AVR32_UC3A164__))\r
-                               #define USB_SERIES_UC3A1_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3A3256__) || defined(__AVR32_UC3A3256S__) || \\r
-                              defined(__AVR32_UC3A3128__) || defined(__AVR32_UC3A3128S__) || \\r
-                              defined(__AVR32_UC3A364__)  || defined(__AVR32_UC3A364S__))\r
-                               #define USB_SERIES_UC3A3_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3A4256__) || defined(__AVR32_UC3A4256S__) || \\r
-                              defined(__AVR32_UC3A4128__) || defined(__AVR32_UC3A4128S__) || \\r
-                              defined(__AVR32_UC3A464__)  || defined(__AVR32_UC3A464S__))\r
-                               #define USB_SERIES_UC3A4_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3B0512__) || defined(__AVR32_UC3B0256__) || \\r
-                              defined(__AVR32_UC3B0128__) || defined(__AVR32_UC3B064__))\r
-                               #define USB_SERIES_UC3B0_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR32_UC3B1512__) || defined(__AVR32_UC3B1256__) || \\r
-                              defined(__AVR32_UC3B1128__) || defined(__AVR32_UC3B164__))\r
-                               #define USB_SERIES_UC3B1_AVR32\r
-                               #define USB_CAN_BE_DEVICE\r
-                               #define USB_CAN_BE_HOST\r
-                       #elif (defined(__AVR_ATxmega128A1U__) || defined(__AVR_ATxmega64A1U__))\r
-                               #define USB_SERIES_A1U_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega64A3U__) || defined(__AVR_ATxmega128A3U__) || \\r
-                              defined(__AVR_ATxmega192A3U__) || defined(__AVR_ATxmega256A3U__))\r
-                               #define USB_SERIES_A3U_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega256A3BU__))\r
-                               #define USB_SERIES_A3BU_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega16A4U__) || defined(__AVR_ATxmega32A4U__) || \\r
-                              defined(__AVR_ATxmega64A4U__) || defined(__AVR_ATxmega128A4U__))\r
-                               #define USB_SERIES_A4U_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega128B1__) || defined(__AVR_ATxmega64B1__))\r
-                               #define USB_SERIES_B1_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega128B3__) || defined(__AVR_ATxmega64B3__))\r
-                               #define USB_SERIES_B3_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega128C3__) || defined(__AVR_ATxmega64C3__) || \\r
-                              defined(__AVR_ATxmega192C3__) || defined(__AVR_ATxmega256C3__) || \\r
-                                  defined(__AVR_ATxmega384C3__))\r
-                               #define USB_SERIES_C3_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #elif (defined(__AVR_ATxmega16C4__) || defined(__AVR_ATxmega32C4__))\r
-                               #define USB_SERIES_C4_XMEGA\r
-                               #define USB_CAN_BE_DEVICE\r
-                       #endif\r
-\r
-                       #if (defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))\r
-                               #define USB_CAN_BE_BOTH\r
-                       #endif\r
-\r
-                       #if defined(USB_HOST_ONLY)\r
-                               #if !defined(USB_CAN_BE_HOST)\r
-                                       #error USB_HOST_ONLY is not available for the currently selected microcontroller model.\r
-                               #else\r
-                                       #undef USB_CAN_BE_DEVICE\r
-                                       #undef USB_CAN_BE_BOTH\r
-                               #endif\r
-                       #endif\r
-\r
-                       #if defined(USB_DEVICE_ONLY)\r
-                               #if !defined(USB_CAN_BE_DEVICE)\r
-                                       #error USB_DEVICE_ONLY is not available for the currently selected microcontroller model.\r
-                               #else\r
-                                       #undef USB_CAN_BE_HOST\r
-                                       #undef USB_CAN_BE_BOTH\r
-                               #endif\r
-                       #endif\r
-\r
-                       #if (defined(USB_HOST_ONLY) && defined(USB_DEVICE_ONLY))\r
-                               #error USB_HOST_ONLY and USB_DEVICE_ONLY are mutually exclusive.\r
-                       #endif\r
-\r
-                       #if (!defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))\r
-                               #error The currently selected device or architecture is not supported under the USB component of the library.\r
-                       #endif\r
-       #endif\r
-\r
-       /* Disable C linkage for C++ Compilers: */\r
-               #if defined(__cplusplus)\r
-                       }\r
-               #endif\r
-\r
-#endif\r
-\r
-/** @} */\r
-\r