mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 03:24:00 +00:00
machine/rp2: merge common usb code (#4856)
* machine/rp2: merge common usb code * chore: add note on noinline reason
This commit is contained in:
@@ -334,6 +334,8 @@ func SendUSBInPacket(ep uint32, data []byte) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Prevent file size increases: https://github.com/tinygo-org/tinygo/pull/998
|
||||
//
|
||||
//go:noinline
|
||||
func sendUSBPacket(ep uint32, data []byte, maxsize uint16) {
|
||||
l := uint16(len(data))
|
||||
|
||||
Reference in New Issue
Block a user