Skip to content

Commit 6a99d35

Browse files
committed
Use VID/PID from Makefile in descriptors.
1 parent 680b485 commit 6a99d35

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/bulkloop/descriptors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ __code __at(DSCR_AREA) struct usb_descriptors code_descriptors = {
1010
.bDeviceSubClass = USB_SUBCLASS_VENDOR_SPEC,
1111
.bDeviceProtocol = 0xff,
1212
.bMaxPacketSize0 = 64,
13-
.idVendor = 0x04B4,
14-
.idProduct = 0x1004,
13+
.idVendor = DSCR_VID,
14+
.idProduct = DSCR_PID,
1515
.bcdDevice = 0x0001,
1616
.iManufacturer = USB_STRING_INDEX(0),
1717
.iProduct = USB_STRING_INDEX(1),

lib/fx2-cdesc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
BUILDDIR?=build
44

5-
DSCR_AREA=-DDSCR_AREA=0x3e00
5+
DSCR_AREA=-DDSCR_AREA=0x3e00 -DDSCR_VID=$(VID) -DDSCR_PID=$(PID)
66
SDCCFLAGS += --std-c99
77
SOURCES += descriptors.c
88

0 commit comments

Comments
 (0)