]> git.gir.st - tmk_keyboard.git/blob - protocol/lufa/LUFA-120730/LUFA/CodeTemplates/LUFAConfig.h
Squashed 'tmk_core/' content from commit 05caacc
[tmk_keyboard.git] / protocol / lufa / LUFA-120730 / LUFA / CodeTemplates / LUFAConfig.h
1 /*
2 LUFA Library
3 Copyright (C) Dean Camera, 2012.
4
5 dean [at] fourwalledcubicle [dot] com
6 www.lufa-lib.org
7 */
8
9 /*
10 Copyright 2012 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 disclaim 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 LUFA Library Configuration Header File (Template)
33 *
34 * This is a header file which can be used to configure LUFA's
35 * compile time options, as an alternative to the compile time
36 * constants supplied through a makefile. To use this configuration
37 * header, copy this into your project's root directory and supply
38 * the \c USE_LUFA_CONFIG_HEADER token to the compiler so that it is
39 * defined in all compiled source files.
40 *
41 * For information on what each token does, refer to the LUFA
42 * manual section "Summary of Compile Tokens".
43 */
44
45 #ifndef __LUFA_CONFIG_H__
46 #define __LUFA_CONFIG_H__
47
48 #if (ARCH == ARCH_AVR8)
49
50 /* Non-USB Related Configuration Tokens: */
51 // #define DISABLE_TERMINAL_CODES
52
53 /* USB Class Driver Related Tokens: */
54 // #define HID_HOST_BOOT_PROTOCOL_ONLY
55 // #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
56 // #define HID_USAGE_STACK_DEPTH {Insert Value Here}
57 // #define HID_MAX_COLLECTIONS {Insert Value Here}
58 // #define HID_MAX_REPORTITEMS {Insert Value Here}
59 // #define HID_MAX_REPORT_IDS {Insert Value Here}
60 // #define NO_CLASS_DRIVER_AUTOFLUSH
61
62 /* General USB Driver Related Tokens: */
63 // #define ORDERED_EP_CONFIG
64 // #define USE_STATIC_OPTIONS {Insert Value Here}
65 // #define USB_DEVICE_ONLY
66 // #define USB_HOST_ONLY
67 // #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
68 // #define NO_LIMITED_CONTROLLER_CONNECT
69 // #define NO_SOF_EVENTS
70
71 /* USB Device Mode Driver Related Tokens: */
72 // #define USE_RAM_DESCRIPTORS
73 // #define USE_FLASH_DESCRIPTORS
74 // #define USE_EEPROM_DESCRIPTORS
75 // #define NO_INTERNAL_SERIAL
76 // #define FIXED_CONTROL_ENDPOINT_SIZE {Insert Value Here}
77 // #define DEVICE_STATE_AS_GPIOR {Insert Value Here}
78 // #define FIXED_NUM_CONFIGURATIONS {Insert Value Here}
79 // #define CONTROL_ONLY_DEVICE
80 // #define INTERRUPT_CONTROL_ENDPOINT
81 // #define NO_DEVICE_REMOTE_WAKEUP
82 // #define NO_DEVICE_SELF_POWER
83
84 /* USB Host Mode Driver Related Tokens: */
85 // #define HOST_STATE_AS_GPIOR {Insert Value Here}
86 // #define USB_HOST_TIMEOUT_MS {Insert Value Here}
87 // #define HOST_DEVICE_SETTLE_DELAY_MS {Insert Value Here}
88 // #define NO_AUTO_VBUS_MANAGEMENT
89 // #define INVERTED_VBUS_ENABLE_LINE
90
91 #elif (ARCH == ARCH_XMEGA)
92
93 /* Non-USB Related Configuration Tokens: */
94 // #define DISABLE_TERMINAL_CODES
95
96 /* USB Class Driver Related Tokens: */
97 // #define HID_HOST_BOOT_PROTOCOL_ONLY
98 // #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
99 // #define HID_USAGE_STACK_DEPTH {Insert Value Here}
100 // #define HID_MAX_COLLECTIONS {Insert Value Here}
101 // #define HID_MAX_REPORTITEMS {Insert Value Here}
102 // #define HID_MAX_REPORT_IDS {Insert Value Here}
103 // #define NO_CLASS_DRIVER_AUTOFLUSH
104
105 /* General USB Driver Related Tokens: */
106 // #define USE_STATIC_OPTIONS {Insert Value Here}
107 // #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
108 // #define NO_LIMITED_CONTROLLER_CONNECT
109 // #define NO_SOF_EVENTS
110
111 /* USB Device Mode Driver Related Tokens: */
112 // #define USE_RAM_DESCRIPTORS
113 // #define USE_FLASH_DESCRIPTORS
114 // #define USE_EEPROM_DESCRIPTORS
115 // #define NO_INTERNAL_SERIAL
116 // #define FIXED_CONTROL_ENDPOINT_SIZE {Insert Value Here}
117 // #define DEVICE_STATE_AS_GPIOR {Insert Value Here}
118 // #define FIXED_NUM_CONFIGURATIONS {Insert Value Here}
119 // #define CONTROL_ONLY_DEVICE
120 // #define MAX_ENDPOINT_INDEX {Insert Value Here}
121 // #define NO_DEVICE_REMOTE_WAKEUP
122 // #define NO_DEVICE_SELF_POWER
123
124 #elif (ARCH == ARCH_UC3)
125
126 /* Non-USB Related Configuration Tokens: */
127 // #define DISABLE_TERMINAL_CODES
128
129 /* USB Class Driver Related Tokens: */
130 // #define HID_HOST_BOOT_PROTOCOL_ONLY
131 // #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
132 // #define HID_USAGE_STACK_DEPTH {Insert Value Here}
133 // #define HID_MAX_COLLECTIONS {Insert Value Here}
134 // #define HID_MAX_REPORTITEMS {Insert Value Here}
135 // #define HID_MAX_REPORT_IDS {Insert Value Here}
136 // #define NO_CLASS_DRIVER_AUTOFLUSH
137
138 /* General USB Driver Related Tokens: */
139 // #define ORDERED_EP_CONFIG
140 // #define USE_STATIC_OPTIONS {Insert Value Here}
141 // #define USB_DEVICE_ONLY
142 // #define USB_HOST_ONLY
143 // #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
144 // #define NO_SOF_EVENTS
145
146 /* USB Device Mode Driver Related Tokens: */
147 // #define NO_INTERNAL_SERIAL
148 // #define FIXED_CONTROL_ENDPOINT_SIZE {Insert Value Here}
149 // #define FIXED_NUM_CONFIGURATIONS {Insert Value Here}
150 // #define CONTROL_ONLY_DEVICE
151 // #define INTERRUPT_CONTROL_ENDPOINT
152 // #define NO_DEVICE_REMOTE_WAKEUP
153 // #define NO_DEVICE_SELF_POWER
154
155 /* USB Host Mode Driver Related Tokens: */
156 // #define USB_HOST_TIMEOUT_MS {Insert Value Here}
157 // #define HOST_DEVICE_SETTLE_DELAY_MS {Insert Value Here}
158 // #define NO_AUTO_VBUS_MANAGEMENT
159 // #define INVERTED_VBUS_ENABLE_LINE
160
161 #else
162
163 #error Unsupported architecture for this LUFA configuration file.
164
165 #endif
166 #endif
167
Imprint / Impressum