mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user