diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-08-09 07:21:53 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-08-09 07:21:53 +0000 |
commit | be520aed52239bd6091df4b3cdd816df8f0d4750 (patch) | |
tree | 6ae17309161c00e8240d717384e74f106047d98e /Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c | |
parent | 9274610a483bb5ed1ea7ef752e4a6b2b1601e7a8 (diff) | |
download | lufa-be520aed52239bd6091df4b3cdd816df8f0d4750.tar.gz lufa-be520aed52239bd6091df4b3cdd816df8f0d4750.tar.bz2 lufa-be520aed52239bd6091df4b3cdd816df8f0d4750.zip |
Add notification endpoint to the incomplete TMC demo.
Diffstat (limited to 'Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c')
-rw-r--r-- | Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c b/Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c index 08419a966..a56471568 100644 --- a/Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c +++ b/Demos/Device/Incomplete/TestAndMeasurement/Descriptors.c @@ -106,7 +106,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .InterfaceNumber = 0x00, .AlternateSetting = 0x00, - .TotalEndpoints = 2, + .TotalEndpoints = 3, .Class = 0xFE, .SubClass = 0x03, @@ -133,6 +133,16 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .Attributes = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), .EndpointSize = TMC_IO_EPSIZE, .PollingIntervalMS = 0x00 + }, + + .NotificationEndpoint = + { + .Header = {.Size = sizeof(USB_Descriptor_Endpoint_t), .Type = DTYPE_Endpoint}, + + .EndpointAddress = (ENDPOINT_DESCRIPTOR_DIR_IN | TMC_NOTIFICATION_EPNUM), + .Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), + .EndpointSize = TMC_NOTIFICATION_EPSIZE, + .PollingIntervalMS = 0xFF } }; |