Fahrplan: Finale Version.
[hackover2013-badge-firmware.git] / core / usbhid-rom / usbconfig.c
1 /**************************************************************************/
2 /*!
3 @file usbconfig.c
4 @author K. Townsend (microBuilder.eu)
5 @date 22 March 2010
6 @version 0.10
7
8 @section LICENSE
9
10 Software License Agreement (BSD License)
11
12 Copyright (c) 2010, microBuilder SARL
13 All rights reserved.
14
15 Redistribution and use in source and binary forms, with or without
16 modification, are permitted provided that the following conditions are met:
17 1. Redistributions of source code must retain the above copyright
18 notice, this list of conditions and the following disclaimer.
19 2. Redistributions in binary form must reproduce the above copyright
20 notice, this list of conditions and the following disclaimer in the
21 documentation and/or other materials provided with the distribution.
22 3. Neither the name of the copyright holders nor the
23 names of its contributors may be used to endorse or promote products
24 derived from this software without specific prior written permission.
25
26 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
27 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
28 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
30 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
31 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
33 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 */
37 /**************************************************************************/
38
39 #include "usb.h"
40 #include "usbconfig.h"
41
42 #ifndef WBVAL
43 #define WBVAL(x) ((x) & 0xFF),(((x) >> 8) & 0xFF)
44 #endif
45
46 /* USB String Descriptor (optional) */
47 const uint8_t USB_HIDStringDescriptor[] =
48 {
49 /* Index 0x00: LANGID Codes */
50 0x04, /* bLength */
51 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
52 WBVAL(0x0409), /* US English */ /* wLANGID */
53 /* Index 0x04: Manufacturer */
54 0x1C, /* bLength */
55 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
56 'C',0,
57 'C',0,
58 'C',0,
59 ' ',0,
60 ' ',0,
61 ' ',0,
62 ' ',0,
63 ' ',0,
64 ' ',0,
65 ' ',0,
66 ' ',0,
67 ' ',0,
68 ' ',0,
69 /* Index 0x20: Product */
70 0x28, /* bLength */
71 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
72 'r',0,
73 '0',0,
74 'k',0,
75 'e',0,
76 't',0,
77 ' ',0,
78 ' ',0,
79 ' ',0,
80 ' ',0,
81 ' ',0,
82 ' ',0,
83 ' ',0,
84 ' ',0,
85 ' ',0,
86 ' ',0,
87 ' ',0,
88 ' ',0,
89 ' ',0,
90 ' ',0,
91 /* Index 0x48: Serial Number */
92 0x1A, /* bLength */
93 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
94 '0',0,
95 '0',0,
96 '0',0,
97 '0',0,
98 '0',0,
99 '0',0,
100 '0',0,
101 '0',0,
102 '0',0,
103 '0',0,
104 '0',0,
105 '0',0,
106 /* Index 0x62: Interface 0, Alternate Setting 0 */
107 0x0E, /* bLength */
108 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
109 'H',0,
110 'I',0,
111 'D',0,
112 ' ',0,
113 ' ',0,
114 ' ',0,
115 };
116
117 /* USB String Descriptor (optional) */
118 const uint8_t USB_MSCStringDescriptor[] =
119 {
120 /* Index 0x00: LANGID Codes */
121 0x04, /* bLength */
122 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
123 WBVAL(0x0409), /* US English */ /* wLANGID */
124 /* Index 0x04: Manufacturer */
125 0x1C, /* bLength */
126 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
127 'C',0,
128 'C',0,
129 'C',0,
130 ' ',0,
131 ' ',0,
132 ' ',0,
133 ' ',0,
134 ' ',0,
135 ' ',0,
136 ' ',0,
137 ' ',0,
138 ' ',0,
139 ' ',0,
140 /* Index 0x20: Product */
141 0x28, /* bLength */
142 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
143 'r',0,
144 '0',0,
145 'k',0,
146 'e',0,
147 't',0,
148 ' ',0,
149 ' ',0,
150 ' ',0,
151 ' ',0,
152 ' ',0,
153 ' ',0,
154 ' ',0,
155 ' ',0,
156 ' ',0,
157 ' ',0,
158 ' ',0,
159 ' ',0,
160 ' ',0,
161 ' ',0,
162 /* Index 0x48: Serial Number */
163 0x1A, /* bLength */
164 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
165 '0',0,
166 '0',0,
167 '0',0,
168 '0',0,
169 '0',0,
170 '0',0,
171 '0',0,
172 '0',0,
173 '0',0,
174 '0',0,
175 '0',0,
176 '0',0,
177 /* Index 0x62: Interface 0, Alternate Setting 0 */
178 0x0E, /* bLength */
179 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
180 'M',0,
181 'e',0,
182 'm',0,
183 'o',0,
184 'r',0,
185 'y',0,
186 };
This page took 0.048505 seconds and 5 git commands to generate.