diff options
author | Drashna Jaelre <drashna@live.com> | 2019-08-02 14:02:40 -0700 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-09-17 11:39:43 +0900 |
commit | 07cfca1bebaae514dc1b1811c90b4557e2ed92cc (patch) | |
tree | 65535fef5627256c2f96c5e30c148f2ecd314821 /tmk_core | |
parent | f6e500e1993eeedfb6256b520df4f16c615ead8b (diff) |
Fix the LUFA lib to use a submodule instead of just files (#6245)
* Remove LUFA files
* Update descriptions for newer version of LUFA
* Create PR6245.md
* Fix CDC(Serial) type errors
* Fix missed merge conflict for AUDIO_DTYPE_CSInterface
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/protocol/usb_descriptor.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tmk_core/protocol/usb_descriptor.c b/tmk_core/protocol/usb_descriptor.c index fb280f9473..af49eeec3e 100644 --- a/tmk_core/protocol/usb_descriptor.c +++ b/tmk_core/protocol/usb_descriptor.c @@ -571,6 +571,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface }, + .InterfaceNumber = AC_INTERFACE, .AlternateSetting = 0, .TotalEndpoints = 0, @@ -582,7 +583,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .Audio_ControlInterface_SPC = { .Header = { .Size = sizeof(USB_Audio_Descriptor_Interface_AC_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_Header, .ACSpecification = VERSION_BCD(1, 0, 0), @@ -595,6 +596,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface }, + .InterfaceNumber = AS_INTERFACE, .AlternateSetting = 0, .TotalEndpoints = 2, @@ -606,7 +608,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .Audio_StreamInterface_SPC = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_AudioInterface_AS_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_General, .AudioSpecification = VERSION_BCD(1, 0, 0), @@ -615,7 +617,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .MIDI_In_Jack_Emb = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, .JackType = MIDI_JACKTYPE_Embedded, @@ -625,7 +627,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .MIDI_In_Jack_Ext = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, .JackType = MIDI_JACKTYPE_External, @@ -635,7 +637,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .MIDI_Out_Jack_Emb = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, .JackType = MIDI_JACKTYPE_Embedded, @@ -648,7 +650,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .MIDI_Out_Jack_Ext = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), - .Type = DTYPE_CSInterface + .Type = AUDIO_DTYPE_CSInterface }, .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, .JackType = MIDI_JACKTYPE_External, @@ -669,13 +671,14 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .EndpointSize = MIDI_STREAM_EPSIZE, .PollingIntervalMS = 0x05 }, + .Refresh = 0, .SyncEndpointNumber = 0 }, .MIDI_In_Jack_Endpoint_SPC = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), - .Type = DTYPE_CSEndpoint + .Type = AUDIO_DSUBTYPE_CSEndpoint_General }, .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, .TotalEmbeddedJacks = 0x01, @@ -692,13 +695,14 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .EndpointSize = MIDI_STREAM_EPSIZE, .PollingIntervalMS = 0x05 }, + .Refresh = 0, .SyncEndpointNumber = 0 }, .MIDI_Out_Jack_Endpoint_SPC = { .Header = { .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), - .Type = DTYPE_CSEndpoint + .Type = AUDIO_DTYPE_CSEndpoint }, .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, .TotalEmbeddedJacks = 0x01, @@ -738,7 +742,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .CDC_Functional_Header = { .Header = { .Size = sizeof(USB_CDC_Descriptor_FunctionalHeader_t), - .Type = DTYPE_CSInterface + .Type = CDC_DTYPE_CSInterface }, .Subtype = 0x00, .CDCSpecification = VERSION_BCD(1, 1, 0), @@ -746,7 +750,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .CDC_Functional_ACM = { .Header = { .Size = sizeof(USB_CDC_Descriptor_FunctionalACM_t), - .Type = DTYPE_CSInterface + .Type = CDC_DTYPE_CSInterface }, .Subtype = 0x02, .Capabilities = 0x02, @@ -754,7 +758,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { .CDC_Functional_Union = { .Header = { .Size = sizeof(USB_CDC_Descriptor_FunctionalUnion_t), - .Type = DTYPE_CSInterface + .Type = CDC_DTYPE_CSInterface }, .Subtype = 0x06, .MasterInterfaceNumber = CCI_INTERFACE, |