\r
/** \ingroup Group_USB\r
* \defgroup Group_OTG USB On The Go (OTG) Management\r
- * \brief Common USB OTG definitions for all architectures.\r
+ * \brief USB OTG management definitions.\r
*\r
* This module contains macros for embedded USB hosts with dual role On The Go capabilities, for managing role\r
* exchange. OTG is a way for two USB dual role devices to talk to one another directly without fixed device/host\r
\r
/* Includes: */\r
#include "../../../Common/Common.h"\r
-\r
- #if (ARCH == ARCH_AVR8)\r
- #include "AVR8/OTG.h"\r
+ #include "USBMode.h" \r
+ \r
+ /* Enable C linkage for C++ Compilers: */\r
+ #if defined(__cplusplus)\r
+ extern "C" {\r
#endif\r
\r
/* Preprocessor Checks: */\r
#error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead.\r
#endif\r
\r
+ /* Architecture Includes: */\r
+ #if (ARCH == ARCH_AVR8)\r
+ #include "AVR8/OTG_AVR8.h"\r
+ #endif\r
+\r
+ /* Disable C linkage for C++ Compilers: */\r
+ #if defined(__cplusplus)\r
+ }\r
+ #endif\r
+\r
#endif\r
\r
/** @} */\r