aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/CDC.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-07 07:23:03 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-07 07:23:03 +0000
commit34dc7f241fe0627e21c3a218123d5d9fbc97374c (patch)
tree093ec915c54f126f4e846fb473acf86cb93110b9 /LUFA/Drivers/USB/Class/CDC.h
parent64e5c4084f862267d96b0947f462de7058f3dc4c (diff)
downloadlufa-34dc7f241fe0627e21c3a218123d5d9fbc97374c.tar.gz
lufa-34dc7f241fe0627e21c3a218123d5d9fbc97374c.tar.bz2
lufa-34dc7f241fe0627e21c3a218123d5d9fbc97374c.zip
Make Low Level host demos use void pointers for the configuration descriptor, to prevent warnings when passed to the altered configuration descriptor parsing routines.
Added preprocessor checks to give a human readable error when the class drivers are used when the incompatible NO_STREAM_CALLBACKS compile time option is used.
Diffstat (limited to 'LUFA/Drivers/USB/Class/CDC.h')
-rw-r--r--LUFA/Drivers/USB/Class/CDC.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/CDC.h b/LUFA/Drivers/USB/Class/CDC.h
index 8ed0cf671..3d40dff3a 100644
--- a/LUFA/Drivers/USB/Class/CDC.h
+++ b/LUFA/Drivers/USB/Class/CDC.h
@@ -53,6 +53,10 @@
/* Includes: */
#include "../HighLevel/USBMode.h"
+ #if defined(NO_STREAM_CALLBACKS)
+ #error The NO_STREAM_CALLBACKS compile time option cannot be used in projects using the library Class drivers.
+ #endif
+
#if defined(USB_CAN_BE_DEVICE)
#include "Device/CDC.h"
#endif