Skip to content

Commit a7854ac

Browse files
committed
USB: add bcdDevice descriptor
1 parent ecfce90 commit a7854ac

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

UNOR4USBBridge/UNOR4USBBridge.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void setup() {
144144
USB.PID(0x1002);
145145
USB.manufacturerName("Arduino");
146146
USB.productName("UNO WiFi R4 CMSIS-DAP");
147+
USB.firmwareVersion(U8TOBCD(FIRMWARE_MAJOR) << 8 | U8TOBCD(FIRMWARE_MINOR));
147148
//USB.enableDFU();
148149
DAP.begin();
149150
SERIAL_USER.onEvent(usbEventCallback);

UNOR4USBBridge/at_handler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#define FIRMWARE_MINOR 5
2121
#define FIRMWARE_PATCH 2
2222

23+
#define U8TOBCD(u) ((((u/10)%10)<<4)|(u%10))
24+
2325
#define GPIO_BOOT 9
2426
#define GPIO_RST 4
2527

0 commit comments

Comments
 (0)