machine/usb/descriptor: rename and export Append() to make it easier to create new descriptors in user code

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-04-28 21:36:18 +02:00
committed by Ron Evans
parent d8ee520bdc
commit 90935703e6
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ var ClassHID = ClassHIDType{
var CDCHID = Descriptor{
Device: DeviceCDC.Bytes(),
Configuration: appendSlices([][]byte{
Configuration: Append([][]byte{
ConfigurationCDCHID.Bytes(),
InterfaceAssociationCDC.Bytes(),
InterfaceCDCControl.Bytes(),
@@ -130,7 +130,7 @@ var CDCHID = Descriptor{
EndpointEP4IN.Bytes(),
}),
HID: map[uint16][]byte{
2: appendSlices([][]byte{
2: Append([][]byte{
HIDUsagePageGenericDesktop,
HIDUsageDesktopKeyboard,
HIDCollectionApplication,