aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/usb
diff options
context:
space:
mode:
authorsago35 <[email protected]>2023-11-06 09:57:04 +0900
committerRon Evans <[email protected]>2023-11-07 00:11:40 +0100
commit2b215955cac75b1308d02269b8ea5b73448708a9 (patch)
tree989a92739c96d8286ee503ceafa639e8c16c1525 /src/machine/usb
parentce25f007695d14dd173f326a052a1cf110b63c57 (diff)
downloadtinygo-2b215955cac75b1308d02269b8ea5b73448708a9.tar.gz
tinygo-2b215955cac75b1308d02269b8ea5b73448708a9.zip
machine/usb: add support for ISERIAL descriptor
Diffstat (limited to 'src/machine/usb')
-rw-r--r--src/machine/usb/usb.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/machine/usb/usb.go b/src/machine/usb/usb.go
index 47a8a3456..360ac3902 100644
--- a/src/machine/usb/usb.go
+++ b/src/machine/usb/usb.go
@@ -134,4 +134,8 @@ var (
// Product is the product name displayed for this USB device.
Product string
+
+ // Serial is the serial value displayed for this USB device. Assign a value to
+ // transmit the serial to the host when requested.
+ Serial string
)