more refactoring, verified CDC on macOS

This commit is contained in:
sago35
2022-05-12 20:37:17 +09:00
parent 4b81985d2b
commit 8fa58fdc6d
21 changed files with 61 additions and 795 deletions
+5 -2
View File
@@ -1,5 +1,4 @@
//go:build baremetal && usb.cdc && (atsamd51 || atsame5x)
// +build baremetal
//go:build usb.cdc && (atsamd51 || atsame5x)
// +build usb.cdc
// +build atsamd51 atsame5x
@@ -7,6 +6,10 @@ package usb
import "runtime/volatile"
// descCDCCount defines the number of USB cores that may be configured as
// CDC-ACM (single) devices.
const descCDCCount = 1
// Constants for USB CDC-ACM device classes.
const (