Statistics
| Branch: | Tag: | Revision:

root / LUFA / CodeTemplates / LUFAConfig.h @ 978b99e5

History | View | Annotate | Download (4.75 KB)

1
/*
2
             LUFA Library
3
     Copyright (C) Dean Camera, 2011.
4

5
  dean [at] fourwalledcubicle [dot] com
6
           www.lufa-lib.org
7
*/
8

    
9
/*
10
  Copyright 2011  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
/*
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 \c USE_LUFA_CONFIG_HEADER token to the compiler so that it is
37
   defined in all compiled source files.
38
   
39
   For information on what each token does, refer to the LUFA
40
   manual section "Summary of Compile Tokens".
41
*/
42

    
43
#ifndef __LUFA_CONFIG_H__
44
#define __LUFA_CONFIG_H__
45

    
46
        #if (ARCH == ARCH_AVR8)
47

    
48
                /* Non-USB Related Configuration Tokens: */
49
//                #define DISABLE_TERMINAL_CODES
50

    
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
59

    
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
68

    
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
81

    
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}
86

    
87
        #elif (ARCH == ARCH_UC3)
88

    
89
                /* Non-USB Related Configuration Tokens: */
90
//                #define DISABLE_TERMINAL_CODES
91

    
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
100

    
101
                /* General USB Driver Related Tokens: */
102
//                #define ORDERED_EP_CONFIG
103
//                #define USE_STATIC_OPTIONS               {Insert Value Here}
104
//                #define USB_DEVICE_ONLY
105
//                #define USB_HOST_ONLY
106
//                #define USB_STREAM_TIMEOUT_MS            {Insert Value Here}
107
//                #define NO_SOF_EVENTS
108

    
109
                /* USB Device Mode Driver Related Tokens: */
110
//                #define NO_INTERNAL_SERIAL
111
//                #define FIXED_CONTROL_ENDPOINT_SIZE      {Insert Value Here}
112
//                #define FIXED_NUM_CONFIGURATION          {Insert Value Here}
113
//                #define CONTROL_ONLY_DEVICE
114
//                #define INTERRUPT_CONTROL_ENDPOINT
115
//                #define NO_DEVICE_REMOTE_WAKEUP
116
//                #define NO_DEVICE_SELF_POWER
117

    
118
                /* USB Host Mode Driver Related Tokens: */
119
//                #define USB_HOST_TIMEOUT_MS              {Insert Value Here}
120
//                #define HOST_DEVICE_SETTLE_DELAY_MS             {Insert Value Here}
121

    
122
        #endif        
123
#endif
124