aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/DualCDC
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-30 11:03:58 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-30 11:03:58 +0000
commit41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1 (patch)
tree9b171c94526eea9b7848af4af73aa50e5627d64a /Demos/Device/ClassDriver/DualCDC
parentce3ea6fb2513d3aa14c354e2ed78c7eb4a38ee0e (diff)
downloadlufa-41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1.tar.gz
lufa-41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1.tar.bz2
lufa-41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1.zip
Set all CDC and MassStorage device mode demos (LowLevel and ClassDriver) to use the USE_INTERNAL_SERIAL feature, add compile time warnings for devices which do not have an internal serial.
Diffstat (limited to 'Demos/Device/ClassDriver/DualCDC')
-rw-r--r--Demos/Device/ClassDriver/DualCDC/Descriptors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/DualCDC/Descriptors.h b/Demos/Device/ClassDriver/DualCDC/Descriptors.h
index 49befad38..739303edd 100644
--- a/Demos/Device/ClassDriver/DualCDC/Descriptors.h
+++ b/Demos/Device/ClassDriver/DualCDC/Descriptors.h
@@ -42,6 +42,10 @@
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/Class/CDC.h>
+ #if (USE_INTERNAL_SERIAL == NO_DESCRIPTOR)
+ #warning USE_INTERNAL_SERIAL is not available on this AVR - please manually construct a device serial descriptor.
+ #endif
+
/* Macros: */
/** Endpoint number of the first CDC interface's device-to-host notification IN endpoint. */
#define CDC1_NOTIFICATION_EPNUM 3