From 34dc7f241fe0627e21c3a218123d5d9fbc97374c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 7 Nov 2009 07:23:03 +0000 Subject: 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. --- LUFA/Drivers/USB/Class/HID.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'LUFA/Drivers/USB/Class/HID.h') diff --git a/LUFA/Drivers/USB/Class/HID.h b/LUFA/Drivers/USB/Class/HID.h index f1e23678d..f5f9575c7 100644 --- a/LUFA/Drivers/USB/Class/HID.h +++ b/LUFA/Drivers/USB/Class/HID.h @@ -54,6 +54,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/HID.h" #endif -- cgit v1.2.3