-
Notifications
You must be signed in to change notification settings - Fork 997
machine/usb: set the vid and pid to valid values supplied by Adafruit and Arduino #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f7ea2dd
a7e89fc
25d5ca3
e47192e
24e68b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,3 +50,14 @@ const ( | |
| SPI0_MOSI_PIN Pin = 45 // P1.13 | ||
| SPI0_MISO_PIN Pin = 46 // P1.14 | ||
| ) | ||
|
|
||
| // USB CDC identifiers | ||
| const ( | ||
| usb_STRING_PRODUCT = "Nordic nRF52840DK (PCA10056)" | ||
| usb_STRING_MANUFACTURER = "Nordic Semiconductor" | ||
| ) | ||
|
|
||
| var ( | ||
| usb_VID uint16 = 0x239A | ||
| usb_PID uint16 = 0x8029 | ||
| ) | ||
|
Comment on lines
+54
to
+63
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually the nrf52840 boards all do use the constants. See https://github.com/tinygo-org/tinygo/blob/feature/usb-cdc-ids/src/machine/usb_nrf52840.go#L432 and https://github.com/tinygo-org/tinygo/blob/feature/usb-cdc-ids/src/machine/usb_nrf52840.go#L440
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh okay, then it's fine. |
||
Uh oh!
There was an error while loading. Please reload this page.