Skip to content

Commit 96b63a1

Browse files
committed
chore: move common alias functions to usb.go
1 parent 14459df commit 96b63a1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/machine/usb.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,16 @@ func (d *USBDevice) ConfigureUSBEndpoint(desc descriptor.Descriptor, epSettings
371371
usbSetupHandler[s.Index] = s.Handler
372372
}
373373
}
374+
375+
// Old usb functions kept for compatibility
376+
func AckUsbOutTransfer(ep uint32) {
377+
USBDev.AckUsbOutTransfer(ep)
378+
}
379+
380+
func SendUSBInPacket(ep uint32, data []byte) bool {
381+
return USBDev.SendUSBInPacket(ep, data)
382+
}
383+
384+
func SendZlp() {
385+
USBDev.SendZlp()
386+
}

0 commit comments

Comments
 (0)