From 41b54a2acd2d5515cc7f3f1ed1c3d3b17d1988a1 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 30 Jul 2009 11:03:58 +0000 Subject: 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. --- Demos/Device/ClassDriver/USBtoSerial/Descriptors.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Demos/Device/ClassDriver/USBtoSerial') diff --git a/Demos/Device/ClassDriver/USBtoSerial/Descriptors.h b/Demos/Device/ClassDriver/USBtoSerial/Descriptors.h index 730acc601..f78f395a3 100644 --- a/Demos/Device/ClassDriver/USBtoSerial/Descriptors.h +++ b/Demos/Device/ClassDriver/USBtoSerial/Descriptors.h @@ -42,6 +42,10 @@ #include #include + #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 CDC device-to-host notification IN endpoint. */ #define CDC_NOTIFICATION_EPNUM 2 -- cgit v1.2.3