/elec/audio-switcher

To get this branch, use:
bzr branch http://bzr.ed.am/elec/audio-switcher
1 by Tim Marston
initial commit
1
/*
7 by Tim Marston
cleaned up project
2
3
  AUDIO SWITCHER
4
5
  Based on a serial device demonstration from the LUFA project
6
  (www.lufa-lib.org).  LUFA is Copyright (C) Dean Camera, 2012.
7
8
  Changes made to the serial device demonstration program are
9
  Copyright (C) Tim Marston, 2012.
10
11
  For more information:
12
    * see README, or
13
    * visit http://ed.am/
14
1 by Tim Marston
initial commit
15
*/
16
17
/*
18
  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
19
20
  Permission to use, copy, modify, distribute, and sell this
21
  software and its documentation for any purpose is hereby granted
22
  without fee, provided that the above copyright notice appear in
23
  all copies and that both that the copyright notice and this
24
  permission notice and warranty disclaimer appear in supporting
25
  documentation, and that the name of the author not be used in
26
  advertising or publicity pertaining to distribution of the
27
  software without specific, written prior permission.
28
29
  The author disclaim all warranties with regard to this
30
  software, including all implied warranties of merchantability
31
  and fitness.  In no event shall the author be liable for any
32
  special, indirect or consequential damages or any damages
33
  whatsoever resulting from loss of use, data or profits, whether
34
  in an action of contract, negligence or other tortious action,
35
  arising out of or in connection with the use or performance of
36
  this software.
37
*/
38
39
/** \file
40
 *  \brief LUFA Library Configuration Header File
41
 *
42
 *  This header file is used to configure LUFA's compile time options,
43
 *  as an alternative to the compile time constants supplied through
44
 *  a makefile.
45
 *
46
 *  For information on what each token does, refer to the LUFA
47
 *  manual section "Summary of Compile Tokens".
48
 */
49
50
#ifndef _LUFA_CONFIG_H_
51
#define _LUFA_CONFIG_H_
52
53
	#if (ARCH == ARCH_AVR8)
54
55
		/* Non-USB Related Configuration Tokens: */
56
//		#define DISABLE_TERMINAL_CODES
57
58
		/* USB Class Driver Related Tokens: */
59
//		#define HID_HOST_BOOT_PROTOCOL_ONLY
60
//		#define HID_STATETABLE_STACK_DEPTH       {Insert Value Here}
61
//		#define HID_USAGE_STACK_DEPTH            {Insert Value Here}
62
//		#define HID_MAX_COLLECTIONS              {Insert Value Here}
63
//		#define HID_MAX_REPORTITEMS              {Insert Value Here}
64
//		#define HID_MAX_REPORT_IDS               {Insert Value Here}
65
//		#define NO_CLASS_DRIVER_AUTOFLUSH
66
67
		/* General USB Driver Related Tokens: */
68
//		#define ORDERED_EP_CONFIG
69
		#define USE_STATIC_OPTIONS               (USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)
70
		#define USB_DEVICE_ONLY
71
//		#define USB_HOST_ONLY
72
//		#define USB_STREAM_TIMEOUT_MS            {Insert Value Here}
73
//		#define NO_LIMITED_CONTROLLER_CONNECT
74
//		#define NO_SOF_EVENTS
75
76
		/* USB Device Mode Driver Related Tokens: */
77
//		#define USE_RAM_DESCRIPTORS
78
		#define USE_FLASH_DESCRIPTORS
79
//		#define USE_EEPROM_DESCRIPTORS
80
//		#define NO_INTERNAL_SERIAL
81
		#define FIXED_CONTROL_ENDPOINT_SIZE      8
82
//		#define DEVICE_STATE_AS_GPIOR            {Insert Value Here}
83
		#define FIXED_NUM_CONFIGURATIONS         1
84
//		#define CONTROL_ONLY_DEVICE
85
		#define INTERRUPT_CONTROL_ENDPOINT
86
//		#define NO_DEVICE_REMOTE_WAKEUP
87
//		#define NO_DEVICE_SELF_POWER
88
89
		/* USB Host Mode Driver Related Tokens: */
90
//		#define HOST_STATE_AS_GPIOR              {Insert Value Here}
91
//		#define USB_HOST_TIMEOUT_MS              {Insert Value Here}
92
//		#define HOST_DEVICE_SETTLE_DELAY_MS	     {Insert Value Here}
93
//      #define NO_AUTO_VBUS_MANAGEMENT
94
//      #define INVERTED_VBUS_ENABLE_LINE
95
96
	#else
97
98
		#error Unsupported architecture for this LUFA configuration file.
99
100
	#endif
101
#endif