X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/72c2922e38a2dfd14eb2d8e3692171704b5508f4..d37d419ffa419911d0488f50f65a77b1f8ecacce:/Demos/Device/MIDI/Descriptors.c?ds=inline diff --git a/Demos/Device/MIDI/Descriptors.c b/Demos/Device/MIDI/Descriptors.c index d4254110c..6973a4caa 100644 --- a/Demos/Device/MIDI/Descriptors.c +++ b/Demos/Device/MIDI/Descriptors.c @@ -145,7 +145,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .Header = {.Size = sizeof(USB_MIDI_In_Jack_t), .Type = DTYPE_AudioInterface}, .Subtype = DSUBTYPE_InputJack, - .JackType = JACKTYPE_EMBEDDED, + .JackType = MIDI_JACKTYPE_EMBEDDED, .JackID = 0x01, .JackStrIndex = NO_DESCRIPTOR @@ -156,7 +156,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .Header = {.Size = sizeof(USB_MIDI_In_Jack_t), .Type = DTYPE_AudioInterface}, .Subtype = DSUBTYPE_InputJack, - .JackType = JACKTYPE_EXTERNAL, + .JackType = MIDI_JACKTYPE_EXTERNAL, .JackID = 0x02, .JackStrIndex = NO_DESCRIPTOR @@ -167,7 +167,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .Header = {.Size = sizeof(USB_MIDI_Out_Jack_t), .Type = DTYPE_AudioInterface}, .Subtype = DSUBTYPE_OutputJack, - .JackType = JACKTYPE_EMBEDDED, + .JackType = MIDI_JACKTYPE_EMBEDDED, .JackID = 0x03, .NumberOfPins = 1, @@ -182,7 +182,7 @@ USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .Header = {.Size = sizeof(USB_MIDI_Out_Jack_t), .Type = DTYPE_AudioInterface}, .Subtype = DSUBTYPE_OutputJack, - .JackType = JACKTYPE_EXTERNAL, + .JackType = MIDI_JACKTYPE_EXTERNAL, .JackID = 0x04, .NumberOfPins = 1, @@ -282,7 +282,7 @@ USB_Descriptor_String_t PROGMEM ProductString = * is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the * USB host. */ -uint16_t USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress) +uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress) { const uint8_t DescriptorType = (wValue >> 8); const uint8_t DescriptorNumber = (wValue & 0xFF);