Skip to content

Commit

Permalink
Use VID/PID from Makefile in descriptors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Nov 21, 2015
1 parent 680b485 commit 6a99d35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/bulkloop/descriptors.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ __code __at(DSCR_AREA) struct usb_descriptors code_descriptors = {
.bDeviceSubClass = USB_SUBCLASS_VENDOR_SPEC,
.bDeviceProtocol = 0xff,
.bMaxPacketSize0 = 64,
.idVendor = 0x04B4,
.idProduct = 0x1004,
.idVendor = DSCR_VID,
.idProduct = DSCR_PID,
.bcdDevice = 0x0001,
.iManufacturer = USB_STRING_INDEX(0),
.iProduct = USB_STRING_INDEX(1),
Expand Down
2 changes: 1 addition & 1 deletion lib/fx2-cdesc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BUILDDIR?=build

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

Expand Down

0 comments on commit 6a99d35

Please sign in to comment.