diff options
Diffstat (limited to 'Demos/Device/Keyboard')
-rw-r--r-- | Demos/Device/Keyboard/Descriptors.c | 2 | ||||
-rw-r--r-- | Demos/Device/Keyboard/makefile | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/Keyboard/Descriptors.c b/Demos/Device/Keyboard/Descriptors.c index 1c99813f2..8d60bd8ad 100644 --- a/Demos/Device/Keyboard/Descriptors.c +++ b/Demos/Device/Keyboard/Descriptors.c @@ -94,7 +94,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor = .SubClass = 0x00,
.Protocol = 0x00,
- .Endpoint0Size = 8,
+ .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,
.VendorID = 0x03EB,
.ProductID = 0x2042,
diff --git a/Demos/Device/Keyboard/makefile b/Demos/Device/Keyboard/makefile index 945a6f8fc..68271f777 100644 --- a/Demos/Device/Keyboard/makefile +++ b/Demos/Device/Keyboard/makefile @@ -185,6 +185,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources
CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD)
CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES -DNO_STREAM_CALLBACKS -DUSB_DEVICE_ONLY
+CDEFS += -DSTATIC_ENDPOINT_CONFIGURATION -DFIXED_CONTROL_ENDPOINT_SIZE=8
CDEFS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
# Place -D or -U options here for ASM sources
|