aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Device
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-12 19:49:15 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-12 19:49:15 +0000
commitc4ebddd27ab964e55f4c7a1ae098f3f2c8ef47a6 (patch)
treecffdd37b0f144d6ae714821bda2b9ef7e391d784 /LUFA/Drivers/USB/Class/Device
parentdeb6fce7bc7c897242eccd02bf9da5e5191efb58 (diff)
downloadlufa-c4ebddd27ab964e55f4c7a1ae098f3f2c8ef47a6.tar.gz
lufa-c4ebddd27ab964e55f4c7a1ae098f3f2c8ef47a6.tar.bz2
lufa-c4ebddd27ab964e55f4c7a1ae098f3f2c8ef47a6.zip
Add missing <math.h> include for the UC3 devices, hide CDC class driver stream functions for unsupported platforms.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device')
-rw-r--r--LUFA/Drivers/USB/Class/Device/CDCClassDevice.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/CDCClassDevice.h b/LUFA/Drivers/USB/Class/Device/CDCClassDevice.h
index 508c234d7..3304775e7 100644
--- a/LUFA/Drivers/USB/Class/Device/CDCClassDevice.h
+++ b/LUFA/Drivers/USB/Class/Device/CDCClassDevice.h
@@ -283,6 +283,7 @@
*/
void CDC_Device_SendControlLineStateChange(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1);
+ #if defined(FDEV_SETUP_STREAM) || defined(__DOXYGEN__)
/** Creates a standard character stream for the given CDC Device instance so that it can be used with all the regular
* functions in the standard <stdio.h> library that accept a \c FILE stream as a destination (e.g. \c fprintf()). The created
* stream is bidirectional and can be used for both input and output functions.
@@ -314,7 +315,8 @@
*/
void CDC_Device_CreateBlockingStream(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo,
FILE* const Stream) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2);
-
+ #endif
+
/* Private Interface - For use in library only: */
#if !defined(__DOXYGEN__)
/* Function Prototypes: */