Update
[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 'm',0,
57 'i',0,
58 'c',0,
59 'r',0,
60 'o',0,
61 'B',0,
62 'u',0,
63 'i',0,
64 'l',0,
65 'd',0,
66 'e',0,
67 'r',0,
68 ' ',0,
69 /* Index 0x20: Product */
70 0x28, /* bLength */
71 USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
72 'L',0,
73 'P',0,
74 'C',0,
75 '1',0,
76 '3',0,
77 '4',0,
78 '3',0,
79 ' ',0,
80 'R',0,
81 'e',0,
82 'f',0,
83 '.',0,
84 ' ',0,
85 'B',0,
86 'o',0,
87 'a',0,
88 'r',0,
89 'd',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 };
This page took 0.072577 seconds and 5 git commands to generate.