We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 680b485 commit 6a99d35Copy full SHA for 6a99d35
2 files changed
examples/bulkloop/descriptors.c
@@ -10,8 +10,8 @@ __code __at(DSCR_AREA) struct usb_descriptors code_descriptors = {
10
.bDeviceSubClass = USB_SUBCLASS_VENDOR_SPEC,
11
.bDeviceProtocol = 0xff,
12
.bMaxPacketSize0 = 64,
13
- .idVendor = 0x04B4,
14
- .idProduct = 0x1004,
+ .idVendor = DSCR_VID,
+ .idProduct = DSCR_PID,
15
.bcdDevice = 0x0001,
16
.iManufacturer = USB_STRING_INDEX(0),
17
.iProduct = USB_STRING_INDEX(1),
lib/fx2-cdesc.mk
@@ -2,7 +2,7 @@
2
3
BUILDDIR?=build
4
5
-DSCR_AREA=-DDSCR_AREA=0x3e00
+DSCR_AREA=-DDSCR_AREA=0x3e00 -DDSCR_VID=$(VID) -DDSCR_PID=$(PID)
6
SDCCFLAGS += --std-c99
7
SOURCES += descriptors.c
8
0 commit comments