machine/rp2: merge common usb code (#4856)

* machine/rp2: merge common usb code
* chore: add note on noinline reason
This commit is contained in:
Michael Smith
2025-04-15 05:07:47 -04:00
committed by GitHub
parent 41e501aaf4
commit 133e32c1c4
6 changed files with 255 additions and 465 deletions
+2
View File
@@ -252,6 +252,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) {
count := len(data)