3 Copyright (C) Dean Camera, 2011.
5 dean [at] fourwalledcubicle [dot] com
10 Copyright 2011 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 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
32 This is a header file which can be used to configure LUFA's
33 compile time options, as an alternative to the compile time
34 constants supplied through a makefile. To use this configuration
35 header, copy this into your project's root directory and supply
36 the USE_LUFA_CONFIG_HEADER token to the compiler so that it is
37 defined in all compiled source files.
39 For information on what each token does, refer to the LUFA
40 manual section "Summary of Compile Tokens".
43 #ifndef __LUFA_CONFIG_H__
44 #define __LUFA_CONFIG_H__
46 #if (ARCH == ARCH_AVR8)
48 /* Non-USB Related Configuration Tokens: */
49 // #define DISABLE_TERMINAL_CODES
51 /* USB Class Driver Related Tokens: */
52 // #define HID_HOST_BOOT_PROTOCOL_ONLY
53 // #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
54 // #define HID_USAGE_STACK_DEPTH {Insert Value Here}
55 // #define HID_MAX_COLLECTIONS {Insert Value Here}
56 // #define HID_MAX_REPORTITEMS {Insert Value Here}
57 // #define HID_MAX_REPORT_IDS {Insert Value Here}
58 // #define NO_CLASS_DRIVER_AUTOFLUSH
60 /* General USB Driver Related Tokens: */
61 // #define ORDERED_EP_CONFIG
62 // #define USE_STATIC_OPTIONS {Insert Value Here}
63 // #define USB_DEVICE_ONLY
64 // #define USB_HOST_ONLY
65 // #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
66 // #define NO_LIMITED_CONTROLLER_CONNECT
67 // #define NO_SOF_EVENTS
69 /* USB Device Mode Driver Related Tokens: */
70 // #define USE_RAM_DESCRIPTORS
71 // #define USE_FLASH_DESCRIPTORS
72 // #define USE_EEPROM_DESCRIPTORS
73 // #define NO_INTERNAL_SERIAL
74 // #define FIXED_CONTROL_ENDPOINT_SIZE {Insert Value Here}
75 // #define DEVICE_STATE_AS_GPIOR {Insert Value Here}
76 // #define FIXED_NUM_CONFIGURATION {Insert Value Here}
77 // #define CONTROL_ONLY_DEVICE
78 // #define INTERRUPT_CONTROL_ENDPOINT
79 // #define NO_DEVICE_REMOTE_WAKEUP
80 // #define NO_DEVICE_SELF_POWER
82 /* USB Host Mode Driver Related Tokens: */
83 // #define HOST_STATE_AS_GPIOR {Insert Value Here}
84 // #define USB_HOST_TIMEOUT_MS {Insert Value Here}
85 // #define HOST_DEVICE_SETTLE_DELAY_MS {Insert Value Here}
87 #elif (ARCH == ARCH_UC3)
89 /* Non-USB Related Configuration Tokens: */
90 // #define DISABLE_TERMINAL_CODES
92 /* USB Class Driver Related Tokens: */
93 // #define HID_HOST_BOOT_PROTOCOL_ONLY
94 // #define HID_STATETABLE_STACK_DEPTH {Insert Value Here}
95 // #define HID_USAGE_STACK_DEPTH {Insert Value Here}
96 // #define HID_MAX_COLLECTIONS {Insert Value Here}
97 // #define HID_MAX_REPORTITEMS {Insert Value Here}
98 // #define HID_MAX_REPORT_IDS {Insert Value Here}
99 // #define NO_CLASS_DRIVER_AUTOFLUSH
101 /* General USB Driver Related Tokens: */
102 // #define USE_STATIC_OPTIONS {Insert Value Here}
103 // #define USB_DEVICE_ONLY
104 // #define USB_HOST_ONLY
105 // #define USB_STREAM_TIMEOUT_MS {Insert Value Here}
106 // #define NO_SOF_EVENTS
108 /* USB Device Mode Driver Related Tokens: */
109 // #define NO_INTERNAL_SERIAL
110 // #define FIXED_CONTROL_ENDPOINT_SIZE {Insert Value Here}
111 // #define FIXED_NUM_CONFIGURATION {Insert Value Here}
112 // #define CONTROL_ONLY_DEVICE
113 // #define NO_DEVICE_REMOTE_WAKEUP
114 // #define NO_DEVICE_SELF_POWER
116 /* USB Host Mode Driver Related Tokens: */
117 // #define USB_HOST_TIMEOUT_MS {Insert Value Here}
118 // #define HOST_DEVICE_SETTLE_DELAY_MS {Insert Value Here}