mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
machine/usb: refactor endpoint configuration
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package usb
|
||||
|
||||
type EndpointConfig struct {
|
||||
No uint8
|
||||
Index uint8
|
||||
IsIn bool
|
||||
TxHandler func()
|
||||
RxHandler func([]byte)
|
||||
@@ -9,6 +9,6 @@ type EndpointConfig struct {
|
||||
}
|
||||
|
||||
type SetupConfig struct {
|
||||
No uint8
|
||||
Index uint8
|
||||
Handler func(Setup) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user