3 Copyright (C) Dean Camera, 2014.
5 dean [at] fourwalledcubicle [dot] com
10 Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
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.
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
32 * \brief LUFA Library Configuration Header File (Template)
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.
41 * For information on what each token does, refer to the LUFA
42 * manual section "Summary of Compile Tokens".
45 #ifndef __LUFA_CONFIG_H__
46 #define __LUFA_CONFIG_H__
48 #if (ARCH == ARCH_AVR8)
50 /* Non-USB Related Configuration Tokens: */
51 // #define DISABLE_TERMINAL_CODES
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
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
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
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
91 #elif (ARCH == ARCH_XMEGA)
93 /* Non-USB Related Configuration Tokens: */
94 // #define DISABLE_TERMINAL_CODES
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
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
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
124 #elif (ARCH == ARCH_UC3)
126 /* Non-USB Related Configuration Tokens: */
127 // #define DISABLE_TERMINAL_CODES
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
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
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
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
163 #error Unsupported architecture for this LUFA configuration file.