]> git.donarmstrong.com Git - qmk_firmware.git/blob - protocol/lufa/LUFA-120730/LUFA/Drivers/USB/Core/USBInterrupt.h
Change TOP_DIR to TMK_DIR in makefiles
[qmk_firmware.git] / protocol / lufa / LUFA-120730 / LUFA / Drivers / USB / Core / USBInterrupt.h
1 /*\r
2              LUFA Library\r
3      Copyright (C) Dean Camera, 2012.\r
4 \r
5   dean [at] fourwalledcubicle [dot] com\r
6            www.lufa-lib.org\r
7 */\r
8 \r
9 /*\r
10   Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
11 \r
12   Permission to use, copy, modify, distribute, and sell this\r
13   software and its documentation for any purpose is hereby granted\r
14   without fee, provided that the above copyright notice appear in\r
15   all copies and that both that the copyright notice and this\r
16   permission notice and warranty disclaimer appear in supporting\r
17   documentation, and that the name of the author not be used in\r
18   advertising or publicity pertaining to distribution of the\r
19   software without specific, written prior permission.\r
20 \r
21   The author disclaim all warranties with regard to this\r
22   software, including all implied warranties of merchantability\r
23   and fitness.  In no event shall the author be liable for any\r
24   special, indirect or consequential damages or any damages\r
25   whatsoever resulting from loss of use, data or profits, whether\r
26   in an action of contract, negligence or other tortious action,\r
27   arising out of or in connection with the use or performance of\r
28   this software.\r
29 */\r
30 \r
31 /** \file\r
32  *  \brief USB controller interrupt service routine management.\r
33  *\r
34  *  This file contains definitions required for the correct handling of low level USB service routine interrupts\r
35  *  from the USB controller.\r
36  *\r
37  *  \note This file should not be included directly. It is automatically included as needed by the USB driver\r
38  *        dispatch header located in LUFA/Drivers/USB/USB.h.\r
39  */\r
40 \r
41 #ifndef __USBINTERRUPT_H__\r
42 #define __USBINTERRUPT_H__\r
43 \r
44         /* Includes: */\r
45                 #include "../../../Common/Common.h"\r
46                 #include "USBMode.h"\r
47 \r
48         /* Enable C linkage for C++ Compilers: */\r
49                 #if defined(__cplusplus)\r
50                         extern "C" {\r
51                 #endif\r
52 \r
53         /* Preprocessor Checks: */\r
54                 #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
55                         #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
56                 #endif\r
57 \r
58         /* Architecture Includes: */\r
59                 #if (ARCH == ARCH_AVR8)\r
60                         #include "AVR8/USBInterrupt_AVR8.h"\r
61                 #elif (ARCH == ARCH_UC3)\r
62                         #include "UC3/USBInterrupt_UC3.h"\r
63                 #elif (ARCH == ARCH_XMEGA)\r
64                         #include "XMEGA/USBInterrupt_XMEGA.h"\r
65                 #endif\r
66 \r
67         /* Disable C linkage for C++ Compilers: */\r
68                 #if defined(__cplusplus)\r
69                         }\r
70                 #endif\r
71 \r
72 #endif\r
73 \r