diff options
author | Drashna Jaelre <drashna@live.com> | 2019-08-02 14:02:40 -0700 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
commit | cf4575b94a3c65e6535a159fc71fc885aebc2620 (patch) | |
tree | 2354f2b7a200e02246a564afefedc32357e62b8e /tmk_core | |
parent | 75ee8df19e0f14ba466f41ab673dde2fe2fdae9c (diff) | |
download | qmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.tar.gz qmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.zip |
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 fb280f947..af49eeec3 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 = { | |||
571 | .Size = sizeof(USB_Descriptor_Interface_t), | 571 | .Size = sizeof(USB_Descriptor_Interface_t), |
572 | .Type = DTYPE_Interface | 572 | .Type = DTYPE_Interface |
573 | }, | 573 | }, |
574 | |||
574 | .InterfaceNumber = AC_INTERFACE, | 575 | .InterfaceNumber = AC_INTERFACE, |
575 | .AlternateSetting = 0, | 576 | .AlternateSetting = 0, |
576 | .TotalEndpoints = 0, | 577 | .TotalEndpoints = 0, |
@@ -582,7 +583,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
582 | .Audio_ControlInterface_SPC = { | 583 | .Audio_ControlInterface_SPC = { |
583 | .Header = { | 584 | .Header = { |
584 | .Size = sizeof(USB_Audio_Descriptor_Interface_AC_t), | 585 | .Size = sizeof(USB_Audio_Descriptor_Interface_AC_t), |
585 | .Type = DTYPE_CSInterface | 586 | .Type = AUDIO_DTYPE_CSInterface |
586 | }, | 587 | }, |
587 | .Subtype = AUDIO_DSUBTYPE_CSInterface_Header, | 588 | .Subtype = AUDIO_DSUBTYPE_CSInterface_Header, |
588 | .ACSpecification = VERSION_BCD(1, 0, 0), | 589 | .ACSpecification = VERSION_BCD(1, 0, 0), |
@@ -595,6 +596,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
595 | .Size = sizeof(USB_Descriptor_Interface_t), | 596 | .Size = sizeof(USB_Descriptor_Interface_t), |
596 | .Type = DTYPE_Interface | 597 | .Type = DTYPE_Interface |
597 | }, | 598 | }, |
599 | |||
598 | .InterfaceNumber = AS_INTERFACE, | 600 | .InterfaceNumber = AS_INTERFACE, |
599 | .AlternateSetting = 0, | 601 | .AlternateSetting = 0, |
600 | .TotalEndpoints = 2, | 602 | .TotalEndpoints = 2, |
@@ -606,7 +608,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
606 | .Audio_StreamInterface_SPC = { | 608 | .Audio_StreamInterface_SPC = { |
607 | .Header = { | 609 | .Header = { |
608 | .Size = sizeof(USB_MIDI_Descriptor_AudioInterface_AS_t), | 610 | .Size = sizeof(USB_MIDI_Descriptor_AudioInterface_AS_t), |
609 | .Type = DTYPE_CSInterface | 611 | .Type = AUDIO_DTYPE_CSInterface |
610 | }, | 612 | }, |
611 | .Subtype = AUDIO_DSUBTYPE_CSInterface_General, | 613 | .Subtype = AUDIO_DSUBTYPE_CSInterface_General, |
612 | .AudioSpecification = VERSION_BCD(1, 0, 0), | 614 | .AudioSpecification = VERSION_BCD(1, 0, 0), |
@@ -615,7 +617,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
615 | .MIDI_In_Jack_Emb = { | 617 | .MIDI_In_Jack_Emb = { |
616 | .Header = { | 618 | .Header = { |
617 | .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), | 619 | .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), |
618 | .Type = DTYPE_CSInterface | 620 | .Type = AUDIO_DTYPE_CSInterface |
619 | }, | 621 | }, |
620 | .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, | 622 | .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, |
621 | .JackType = MIDI_JACKTYPE_Embedded, | 623 | .JackType = MIDI_JACKTYPE_Embedded, |
@@ -625,7 +627,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
625 | .MIDI_In_Jack_Ext = { | 627 | .MIDI_In_Jack_Ext = { |
626 | .Header = { | 628 | .Header = { |
627 | .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), | 629 | .Size = sizeof(USB_MIDI_Descriptor_InputJack_t), |
628 | .Type = DTYPE_CSInterface | 630 | .Type = AUDIO_DTYPE_CSInterface |
629 | }, | 631 | }, |
630 | .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, | 632 | .Subtype = AUDIO_DSUBTYPE_CSInterface_InputTerminal, |
631 | .JackType = MIDI_JACKTYPE_External, | 633 | .JackType = MIDI_JACKTYPE_External, |
@@ -635,7 +637,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
635 | .MIDI_Out_Jack_Emb = { | 637 | .MIDI_Out_Jack_Emb = { |
636 | .Header = { | 638 | .Header = { |
637 | .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), | 639 | .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), |
638 | .Type = DTYPE_CSInterface | 640 | .Type = AUDIO_DTYPE_CSInterface |
639 | }, | 641 | }, |
640 | .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, | 642 | .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, |
641 | .JackType = MIDI_JACKTYPE_Embedded, | 643 | .JackType = MIDI_JACKTYPE_Embedded, |
@@ -648,7 +650,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
648 | .MIDI_Out_Jack_Ext = { | 650 | .MIDI_Out_Jack_Ext = { |
649 | .Header = { | 651 | .Header = { |
650 | .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), | 652 | .Size = sizeof(USB_MIDI_Descriptor_OutputJack_t), |
651 | .Type = DTYPE_CSInterface | 653 | .Type = AUDIO_DTYPE_CSInterface |
652 | }, | 654 | }, |
653 | .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, | 655 | .Subtype = AUDIO_DSUBTYPE_CSInterface_OutputTerminal, |
654 | .JackType = MIDI_JACKTYPE_External, | 656 | .JackType = MIDI_JACKTYPE_External, |
@@ -669,13 +671,14 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
669 | .EndpointSize = MIDI_STREAM_EPSIZE, | 671 | .EndpointSize = MIDI_STREAM_EPSIZE, |
670 | .PollingIntervalMS = 0x05 | 672 | .PollingIntervalMS = 0x05 |
671 | }, | 673 | }, |
674 | |||
672 | .Refresh = 0, | 675 | .Refresh = 0, |
673 | .SyncEndpointNumber = 0 | 676 | .SyncEndpointNumber = 0 |
674 | }, | 677 | }, |
675 | .MIDI_In_Jack_Endpoint_SPC = { | 678 | .MIDI_In_Jack_Endpoint_SPC = { |
676 | .Header = { | 679 | .Header = { |
677 | .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), | 680 | .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), |
678 | .Type = DTYPE_CSEndpoint | 681 | .Type = AUDIO_DSUBTYPE_CSEndpoint_General |
679 | }, | 682 | }, |
680 | .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, | 683 | .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, |
681 | .TotalEmbeddedJacks = 0x01, | 684 | .TotalEmbeddedJacks = 0x01, |
@@ -692,13 +695,14 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
692 | .EndpointSize = MIDI_STREAM_EPSIZE, | 695 | .EndpointSize = MIDI_STREAM_EPSIZE, |
693 | .PollingIntervalMS = 0x05 | 696 | .PollingIntervalMS = 0x05 |
694 | }, | 697 | }, |
698 | |||
695 | .Refresh = 0, | 699 | .Refresh = 0, |
696 | .SyncEndpointNumber = 0 | 700 | .SyncEndpointNumber = 0 |
697 | }, | 701 | }, |
698 | .MIDI_Out_Jack_Endpoint_SPC = { | 702 | .MIDI_Out_Jack_Endpoint_SPC = { |
699 | .Header = { | 703 | .Header = { |
700 | .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), | 704 | .Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), |
701 | .Type = DTYPE_CSEndpoint | 705 | .Type = AUDIO_DTYPE_CSEndpoint |
702 | }, | 706 | }, |
703 | .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, | 707 | .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, |
704 | .TotalEmbeddedJacks = 0x01, | 708 | .TotalEmbeddedJacks = 0x01, |
@@ -738,7 +742,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
738 | .CDC_Functional_Header = { | 742 | .CDC_Functional_Header = { |
739 | .Header = { | 743 | .Header = { |
740 | .Size = sizeof(USB_CDC_Descriptor_FunctionalHeader_t), | 744 | .Size = sizeof(USB_CDC_Descriptor_FunctionalHeader_t), |
741 | .Type = DTYPE_CSInterface | 745 | .Type = CDC_DTYPE_CSInterface |
742 | }, | 746 | }, |
743 | .Subtype = 0x00, | 747 | .Subtype = 0x00, |
744 | .CDCSpecification = VERSION_BCD(1, 1, 0), | 748 | .CDCSpecification = VERSION_BCD(1, 1, 0), |
@@ -746,7 +750,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
746 | .CDC_Functional_ACM = { | 750 | .CDC_Functional_ACM = { |
747 | .Header = { | 751 | .Header = { |
748 | .Size = sizeof(USB_CDC_Descriptor_FunctionalACM_t), | 752 | .Size = sizeof(USB_CDC_Descriptor_FunctionalACM_t), |
749 | .Type = DTYPE_CSInterface | 753 | .Type = CDC_DTYPE_CSInterface |
750 | }, | 754 | }, |
751 | .Subtype = 0x02, | 755 | .Subtype = 0x02, |
752 | .Capabilities = 0x02, | 756 | .Capabilities = 0x02, |
@@ -754,7 +758,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = { | |||
754 | .CDC_Functional_Union = { | 758 | .CDC_Functional_Union = { |
755 | .Header = { | 759 | .Header = { |
756 | .Size = sizeof(USB_CDC_Descriptor_FunctionalUnion_t), | 760 | .Size = sizeof(USB_CDC_Descriptor_FunctionalUnion_t), |
757 | .Type = DTYPE_CSInterface | 761 | .Type = CDC_DTYPE_CSInterface |
758 | }, | 762 | }, |
759 | .Subtype = 0x06, | 763 | .Subtype = 0x06, |
760 | .MasterInterfaceNumber = CCI_INTERFACE, | 764 | .MasterInterfaceNumber = CCI_INTERFACE, |