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