diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-22 13:30:03 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-22 13:30:03 +0000 |
commit | 6865a7bc09e31d3bbebb33eefb6475c8713351bd (patch) | |
tree | 5c88f0a5f02458018d0ce067b1e771b5f2330767 /Demos/Device/USBtoSerial | |
parent | d860e9e842c05e759214f5170f78783decae9956 (diff) | |
download | lufa-6865a7bc09e31d3bbebb33eefb6475c8713351bd.tar.gz lufa-6865a7bc09e31d3bbebb33eefb6475c8713351bd.tar.bz2 lufa-6865a7bc09e31d3bbebb33eefb6475c8713351bd.zip |
Applied STATIC_ENDPOINT_CONFIGURATION and FIXED_CONTROL_SIZE tokens to all Device mode demos to reduce binary size.
Diffstat (limited to 'Demos/Device/USBtoSerial')
-rw-r--r-- | Demos/Device/USBtoSerial/Descriptors.c | 2 | ||||
-rw-r--r-- | Demos/Device/USBtoSerial/makefile | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/USBtoSerial/Descriptors.c b/Demos/Device/USBtoSerial/Descriptors.c index 1619f9d57..3e2f37993 100644 --- a/Demos/Device/USBtoSerial/Descriptors.c +++ b/Demos/Device/USBtoSerial/Descriptors.c @@ -51,7 +51,7 @@ USB_Descriptor_Device_t PROGMEM DeviceDescriptor = .SubClass = 0x00,
.Protocol = 0x00,
- .Endpoint0Size = 8,
+ .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,
.VendorID = 0x03EB,
.ProductID = 0x2044,
diff --git a/Demos/Device/USBtoSerial/makefile b/Demos/Device/USBtoSerial/makefile index 8b7e70163..94f23143b 100644 --- a/Demos/Device/USBtoSerial/makefile +++ b/Demos/Device/USBtoSerial/makefile @@ -186,6 +186,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)"
|