Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
5995c3f8
Commit
5995c3f8
authored
Feb 06, 2011
by
Dean Camera
Browse files
Oops - fix missing constants in the TempDataLogger FatFS diskio.h header file.
Add const to all project descriptor definitions for safety.
parent
355d12e0
Changes
46
Hide whitespace changes
Inline
Side-by-side
Bootloaders/CDC/Descriptors.c
View file @
5995c3f8
...
...
@@ -42,7 +42,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
DeviceDescriptor
=
const
USB_Descriptor_Device_t
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_Device_t DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -178,7 +178,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
LanguageString
=
const
USB_Descriptor_String_t
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -189,7 +189,7 @@ USB_Descriptor_String_t LanguageString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
ProductString
=
const
USB_Descriptor_String_t
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
18
),
.
Type
=
DTYPE_String
},
...
...
Bootloaders/DFU/Descriptors.c
View file @
5995c3f8
...
...
@@ -42,7 +42,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
DeviceDescriptor
=
const
USB_Descriptor_Device_t
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_Device_t DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -119,7 +119,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
LanguageString
=
const
USB_Descriptor_String_t
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -130,7 +130,7 @@ USB_Descriptor_String_t LanguageString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
ProductString
=
const
USB_Descriptor_String_t
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
18
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/AudioInput/Descriptors.c
View file @
5995c3f8
...
...
@@ -42,7 +42,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -236,7 +236,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -247,7 +247,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -258,7 +258,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
18
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/AudioOutput/Descriptors.c
View file @
5995c3f8
...
...
@@ -42,7 +42,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -236,7 +236,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -247,7 +247,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -258,7 +258,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
19
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/DualVirtualSerial/Descriptors.c
View file @
5995c3f8
...
...
@@ -54,7 +54,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -81,7 +81,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -305,7 +305,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -316,7 +316,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -327,7 +327,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
13
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/GenericHID/Descriptors.c
View file @
5995c3f8
...
...
@@ -43,7 +43,7 @@
* the device will send, and what it may be sent back from the host. Refer to the HID specification for
* more details on HID report descriptors.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
GenericReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
GenericReport
[]
=
{
/* Use the HID class driver's standard Vendor HID report.
* Vendor Usage Page: 1
...
...
@@ -60,7 +60,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM GenericReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -87,7 +87,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -157,7 +157,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -168,7 +168,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
21
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/Joystick/Descriptors.c
View file @
5995c3f8
...
...
@@ -43,7 +43,7 @@
* the device will send, and what it may be sent back from the host. Refer to the HID specification for
* more details on HID report descriptors.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
JoystickReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
JoystickReport
[]
=
{
/* Use the HID class driver's standard Joystick report.
* Min X/Y Axis values: -100
...
...
@@ -60,7 +60,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM JoystickReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -87,7 +87,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -146,7 +146,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -157,7 +157,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -168,7 +168,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
18
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/Keyboard/Descriptors.c
View file @
5995c3f8
...
...
@@ -43,7 +43,7 @@
* the device will send, and what it may be sent back from the host. Refer to the HID specification for
* more details on HID report descriptors.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
{
/* Use the HID class driver's standard Keyboard report.
* Max simultaneous keys: 6
...
...
@@ -56,7 +56,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM KeyboardReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -83,7 +83,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -142,7 +142,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -153,7 +153,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -164,7 +164,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
18
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/KeyboardMouse/Descriptors.c
View file @
5995c3f8
...
...
@@ -45,7 +45,7 @@
*
* This descriptor describes the mouse HID interface's report structure.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
MouseReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
MouseReport
[]
=
{
/* Use the HID class driver's standard Mouse report.
* Min X/Y Axis values: -1
...
...
@@ -59,7 +59,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM MouseReport[] =
};
/** Same as the MouseReport structure, but defines the keyboard HID interface's report structure. */
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
{
/* Use the HID class driver's standard Keyboard report.
* Max simultaneous keys: 6
...
...
@@ -72,7 +72,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM KeyboardReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -99,7 +99,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -195,7 +195,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -206,7 +206,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -217,7 +217,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
28
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/KeyboardMouseMultiReport/Descriptors.c
View file @
5995c3f8
...
...
@@ -45,7 +45,7 @@
*
* This descriptor describes the multiple possible reports of the HID interface's report structure.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
HIDReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
HIDReport
[]
=
{
/* Mouse Report */
HID_RI_USAGE_PAGE
(
8
,
0x01
),
/* Generic Desktop */
...
...
@@ -119,7 +119,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM HIDReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -146,7 +146,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -205,7 +205,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -216,7 +216,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -227,7 +227,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
26
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/MIDI/Descriptors.c
View file @
5995c3f8
...
...
@@ -42,7 +42,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -248,7 +248,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -259,7 +259,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -270,7 +270,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
14
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/MassStorage/Descriptors.c
View file @
5995c3f8
...
...
@@ -54,7 +54,7 @@
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -81,7 +81,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -139,7 +139,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -150,7 +150,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -161,7 +161,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
22
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/MassStorageKeyboard/Descriptors.c
View file @
5995c3f8
...
...
@@ -56,7 +56,7 @@
* the device will send, and what it may be sent back from the host. Refer to the HID specification for
* more details on HID report descriptors.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
KeyboardReport
[]
=
{
/* Use the HID class driver's standard Keyboard report.
* Max simultaneous keys: 6
...
...
@@ -69,7 +69,7 @@ USB_Descriptor_HIDReport_Datatype_t PROGMEM KeyboardReport[] =
* number of device configurations. The descriptor is read out by the USB host when the enumeration
* process begins.
*/
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
const
USB_Descriptor_Device_t
PROGMEM
DeviceDescriptor
=
{
.
Header
=
{.
Size
=
sizeof
(
USB_Descriptor_Device_t
),
.
Type
=
DTYPE_Device
},
...
...
@@ -96,7 +96,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
* and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting
* a configuration so that the host may correctly communicate with the USB device.
*/
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
const
USB_Descriptor_Configuration_t
PROGMEM
ConfigurationDescriptor
=
{
.
Config
=
{
...
...
@@ -191,7 +191,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
*/
USB_Descriptor_String_t
PROGMEM
LanguageString
=
const
USB_Descriptor_String_t
PROGMEM
LanguageString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
1
),
.
Type
=
DTYPE_String
},
...
...
@@ -202,7 +202,7 @@ USB_Descriptor_String_t PROGMEM LanguageString =
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
const
USB_Descriptor_String_t
PROGMEM
ManufacturerString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
11
),
.
Type
=
DTYPE_String
},
...
...
@@ -213,7 +213,7 @@ USB_Descriptor_String_t PROGMEM ManufacturerString =
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
* Descriptor.
*/
USB_Descriptor_String_t
PROGMEM
ProductString
=
const
USB_Descriptor_String_t
PROGMEM
ProductString
=
{
.
Header
=
{.
Size
=
USB_STRING_LEN
(
35
),
.
Type
=
DTYPE_String
},
...
...
Demos/Device/ClassDriver/Mouse/Descriptors.c
View file @
5995c3f8
...
...
@@ -43,7 +43,7 @@
* the device will send, and what it may be sent back from the host. Refer to the HID specification for
* more details on HID report descriptors.
*/
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
MouseReport
[]
=
const
USB_Descriptor_HIDReport_Datatype_t
PROGMEM
MouseReport
[]
=
{