# wildcard * is used, a substring. Examples: ANamespace, AClass,\r
# AClass::ANamespace, ANamespace::*Test\r
\r
-EXCLUDE_SYMBOLS = __* \\r
- INCLUDE_FROM_*\r
+EXCLUDE_SYMBOLS = __*\r
\r
# The EXAMPLE_PATH tag can be used to specify one or more files or\r
# directories that contain example code fragments that are included (see\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
// TODO: Add any required includes here\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
+ #define __INCLUDE_FROM_BUTTONS_H\r
#define INCLUDE_FROM_BUTTONS_H\r
#endif\r
\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
+ #define __INCLUDE_FROM_DATAFLASH_H\r
#define INCLUDE_FROM_DATAFLASH_H\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#include "AT45DB321C.h" \r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
+ #define __INCLUDE_FROM_JOYSTICK_H\r
#define INCLUDE_FROM_JOYSTICK_H\r
#endif\r
\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
+ #define __INCLUDE_FROM_LEDS_H\r
#define INCLUDE_FROM_LEDS_H\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#include "AT45DB321C.h" \r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#include "AT45DB642D.h"\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#ifndef __TEMPERATURE_H__\r
#define __TEMPERATURE_H__\r
\r
- /* Macros: */\r
- #if !defined(__DOXYGEN__)\r
- #define INCLUDE_FROM_BOARD_DRIVER\r
- #endif\r
- \r
/* Includes: */\r
#include <avr/pgmspace.h>\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_BUTTONS_H)\r
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.\r
#endif\r
\r
#include "AT45DB642D.h"\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_JOYSTICK_H)\r
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
#include "AT45DB642D.h"\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_DATAFLASH_H)\r
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_LEDS_H)\r
+ #if !defined(__INCLUDE_FROM_LEDS_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.\r
#endif\r
\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
- #define INCLUDE_FROM_ADC_H\r
- #define INCLUDE_FROM_CHIP_DRIVER\r
+ #define __INCLUDE_FROM_ADC_H\r
#endif\r
\r
/* Includes: */\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_ADC_H)\r
+ #if !defined(__INCLUDE_FROM_ADC_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Peripheral/ADC.h instead.\r
#endif\r
\r
#endif\r
\r
/* Preprocessor Checks: */\r
- #if !defined(INCLUDE_FROM_TWI_H)\r
+ #if !defined(__INCLUDE_FROM_TWI_H)\r
#error Do not include this file directly. Include LUFA/Drivers/Peripheral/TWI.h instead.\r
#endif\r
\r
this software.\r
*/\r
\r
-#define INCLUDE_FROM_SERIALSTREAM_C\r
+#define __INCLUDE_FROM_SERIALSTREAM_C\r
#include "SerialStream.h"\r
\r
FILE USARTStream = FDEV_SETUP_STREAM(SerialStream_TxByte, SerialStream_RxByte, _FDEV_SETUP_RW);\r
extern FILE USARTStream;\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_SERIALSTREAM_C)\r
+ #if defined(__INCLUDE_FROM_SERIALSTREAM_C)\r
static int SerialStream_TxByte(char DataByte, FILE *Stream) ATTR_NON_NULL_PTR_ARG(2);\r
static int SerialStream_RxByte(FILE *Stream) ATTR_NON_NULL_PTR_ARG(1);\r
#endif\r
\r
/* Macros: */\r
#if !defined(__DOXYGEN__)\r
- #define INCLUDE_FROM_TWI_H\r
- #define INCLUDE_FROM_CHIP_DRIVER\r
+ #define __INCLUDE_FROM_TWI_H\r
#endif\r
\r
/* Includes: */\r
#ifndef _AUDIO_CLASS_H_\r
#define _AUDIO_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_AUDIO_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+\r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
#ifndef _CDC_CLASS_H_\r
#define _CDC_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_CDC_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+\r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_AUDIO_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/Audio.h instead.\r
+ #endif\r
+\r
/* Macros: */\r
#if !defined(AUDIO_TOTAL_SAMPLE_RATES) || defined(__DOXYGEN__)\r
/** Total number of discrete audio sample rates supported by the device. This value can be overridden by defining this\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_CDC_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/CDC.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** CDC Class specific request to get the current virtual serial port configuration settings. */\r
#define REQ_GetLineEncoding 0x21\r
\r
#include <string.h>\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_HID_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/HID.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** HID Class Specific Request to get the current HID report from the device. */\r
#define REQ_GetReport 0x01\r
#ifndef _MIDI_CLASS_COMMON_H_\r
#define _MIDI_CLASS_COMMON_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_AUDIO_DRIVER\r
+\r
/* Includes: */\r
#include "../../USB.h"\r
#include "Audio.h"\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MIDI_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MIDI.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** Audio class descriptor subtype value for a Audio class specific MIDI input jack descriptor. */\r
#define DSUBTYPE_InputJack 0x02\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MassStorage.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** Mass Storage Class specific request to reset the Mass Storage interface, ready for the next command. */\r
#define REQ_MassStorageReset 0xFF\r
/* Enable C linkage for C++ Compilers: */\r
#if defined(__cplusplus)\r
extern "C" {\r
- #endif\r
+ #endif
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_PRINTER_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/Printer.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** Port status mask for a printer device, indicating that an error has *not* occurred. */\r
#define PRNT_PORTSTATUS_NOTERROR (1 << 3)\r
#ifndef _RNDIS_CLASS_COMMON_H_\r
#define _RNDIS_CLASS_COMMON_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_CDC_DRIVER\r
+\r
/* Includes: */\r
#include "../../USB.h"\r
- #include "CDC.h"\r
#include "RNDISConstants.h"\r
+ #include "CDC.h"\r
\r
#include <string.h>\r
\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_RNDIS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/RNDIS.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** Implemented RNDIS Version Major */\r
#define REMOTE_NDIS_VERSION_MAJOR 0x01\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_SI_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/StillImage.h instead.\r
+ #endif\r
+ \r
/* Macros: */\r
/** Length in bytes of a given Unicode string's character length\r
*\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
+#define __INCLUDE_FROM_AUDIO_DRIVER\r
#include "Audio.h"\r
\r
void Audio_Device_ProcessControlRequest(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_AUDIO_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/Audio.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */ \r
/** Class state structure. An instance of this structure should be made for each Audio interface\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
-#define INCLUDE_FROM_CDC_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_CDC_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_CDC_DRIVER\r
#include "CDC.h"\r
\r
void CDC_Device_Event_Stub(void)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_CDC_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/CDC.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made for each CDC interface\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_CDC_CLASS_DEVICE_C)\r
+ #if defined(__INCLUDE_FROM_CDC_CLASS_DEVICE_C)\r
static int CDC_Device_putchar(char c, FILE* Stream);\r
static int CDC_Device_getchar(FILE* Stream);\r
static int CDC_Device_getchar_Blocking(FILE* Stream);\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
+#define __INCLUDE_FROM_HID_DRIVER\r
#include "HID.h"\r
\r
void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_HID_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/HID.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made for each HID interface\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
+#define __INCLUDE_FROM_MIDI_DRIVER\r
#include "MIDI.h"\r
\r
void MIDI_Device_ProcessControlRequest(USB_ClassInfo_MIDI_Device_t* const MIDIInterfaceInfo)\r
/* Includes: */\r
#include "../../USB.h"\r
#include "../Common/MIDI.h"\r
- #include "Audio.h"\r
\r
#include <string.h>\r
\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MIDI_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MIDI.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Define: */\r
/** Class state structure. An instance of this structure should be made for each MIDI interface\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
-#define INCLUDE_FROM_MS_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_MS_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_MS_DRIVER\r
#include "MassStorage.h"\r
\r
static volatile bool* CallbackIsResetSource;\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MassStorage.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */ \r
/** Class state structure. An instance of this structure should be made for each Mass Storage interface\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_MS_CLASS_DEVICE_C)\r
+ #if defined(__INCLUDE_FROM_MS_CLASS_DEVICE_C)\r
static void MS_Device_ReturnCommandStatus(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1);\r
static bool MS_Device_ReadInCommandBlock(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t StreamCallback_MS_Device_AbortOnMassStoreReset(void);\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
-#define INCLUDE_FROM_RNDIS_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_RNDIS_CLASS_DEVICE_C\r
+#define __INCLUDE_FROM_RNDIS_DRIVER\r
#include "RNDIS.h"\r
\r
static const uint32_t PROGMEM AdapterSupportedOIDList[] =\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_RNDIS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/RNDIS.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */ \r
/** Class state structure. An instance of this structure should be made for each RNDIS interface\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_RNDIS_CLASS_DEVICE_C)\r
+ #if defined(__INCLUDE_FROM_RNDIS_CLASS_DEVICE_C)\r
static void RNDIS_Device_ProcessRNDISControlMessage(USB_ClassInfo_RNDIS_Device_t* const RNDISInterfaceInfo)\r
ATTR_NON_NULL_PTR_ARG(1);\r
static bool RNDIS_Device_ProcessNDISQuery(USB_ClassInfo_RNDIS_Device_t* const RNDISInterfaceInfo, \r
#ifndef _HID_CLASS_H_\r
#define _HID_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_HID_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ \r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_CDC_CLASS_HOST_C\r
+#define __INCLUDE_FROM_CDC_CLASS_HOST_C\r
+#define __INCLUDE_FROM_CDC_DRIVER\r
#include "CDC.h"\r
\r
uint8_t CDC_Host_ConfigurePipes(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_CDC_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/CDC.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made within the user application,\r
#define CDC_FOUND_NOTIFICATION_IN (1 << 2)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_CDC_CLASS_HOST_C)\r
+ #if defined(__INCLUDE_FROM_CDC_CLASS_HOST_C)\r
static int CDC_Host_putchar(char c, FILE* Stream);\r
static int CDC_Host_getchar(FILE* Stream);\r
static int CDC_Host_getchar_Blocking(FILE* Stream);\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_HID_CLASS_HOST_C\r
+#define __INCLUDE_FROM_HID_CLASS_HOST_C\r
+#define __INCLUDE_FROM_HID_DRIVER\r
#include "HID.h"\r
\r
uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_HID_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/HID.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Error code for some HID Host functions, indicating a logical (and not hardware) error */\r
#define HID_FOUND_DATAPIPE_OUT (1 << 1)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_HID_CLASS_HOST_C)\r
+ #if defined(__INCLUDE_FROM_HID_CLASS_HOST_C)\r
static uint8_t DComp_HID_Host_NextHIDInterface(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t DComp_NextHID(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t DComp_HID_Host_NextHIDInterfaceEndpoint(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
#ifndef __HIDPARSER_H__\r
#define __HIDPARSER_H__\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ #define __INCLUDE_FROM_HID_DRIVER\r
+\r
/* Includes: */\r
#include <string.h>\r
#include <stdbool.h>\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_MIDI_CLASS_HOST_C\r
+#define __INCLUDE_FROM_MIDI_CLASS_HOST_C\r
+#define __INCLUDE_FROM_MIDI_DRIVER\r
#include "MIDI.h"\r
\r
uint8_t MIDI_Host_ConfigurePipes(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MIDI_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MIDI.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made within the user application,\r
#define MIDI_FOUND_DATAPIPE_OUT (1 << 1)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_MIDI_CLASS_HOST_C)\r
+ #if defined(__INCLUDE_FROM_MIDI_CLASS_HOST_C)\r
static uint8_t DComp_MIDI_Host_NextMIDIStreamingInterface(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t DComp_MIDI_Host_NextMIDIStreamingDataEndpoint(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
#endif \r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_MS_CLASS_HOST_C\r
+#define __INCLUDE_FROM_MS_CLASS_HOST_C\r
+#define __INCLUDE_FROM_MS_DRIVER\r
#include "MassStorage.h"\r
\r
uint8_t MS_Host_ConfigurePipes(USB_ClassInfo_MS_Host_t* const MSInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_MS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/MassStorage.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Error code for some Mass Storage Host functions, indicating a logical (and not hardware) error */\r
#define MS_FOUND_DATAPIPE_OUT (1 << 1)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_MS_CLASS_HOST_C) \r
+ #if defined(__INCLUDE_FROM_MS_CLASS_HOST_C) \r
static uint8_t DComp_NextMSInterface(void* const CurrentDescriptor);\r
static uint8_t DComp_NextMSInterfaceEndpoint(void* const CurrentDescriptor);\r
\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_PRINTER_CLASS_HOST_C\r
+#define __INCLUDE_FROM_PRINTER_CLASS_HOST_C\r
+#define __INCLUDE_FROM_PRINTER_DRIVER\r
#include "Printer.h"\r
\r
uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_PRINTER_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/Printer.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
- /* Macros: */\r
- \r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made within the user application,\r
* and passed to each of the Printer class driver functions as the PRNTInterfaceInfo parameter. This\r
#define PRNT_FOUND_DATAPIPE_OUT (1 << 1)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_PRINTER_CLASS_HOST_C) \r
+ #if defined(__INCLUDE_FROM_PRINTER_CLASS_HOST_C) \r
static uint8_t DComp_NextPRNTInterface(void* const CurrentDescriptor);\r
static uint8_t DComp_NextPRNTInterfaceEndpoint(void* const CurrentDescriptor);\r
#endif\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_RNDIS_CLASS_HOST_C\r
+#define __INCLUDE_FROM_RNDIS_CLASS_HOST_C\r
+#define __INCLUDE_FROM_RNDIS_DRIVER\r
#include "RNDIS.h"\r
\r
uint8_t RNDIS_Host_ConfigurePipes(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_RNDIS_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/RNDIS.h instead.\r
+ #endif\r
+\r
/* Public Interface - May be used in end-application: */\r
/* Type Defines: */\r
/** Class state structure. An instance of this structure should be made within the user application,\r
#define RNDIS_FOUND_NOTIFICATION_IN (1 << 2)\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_RNDIS_CLASS_HOST_C)\r
+ #if defined(__INCLUDE_FROM_RNDIS_CLASS_HOST_C)\r
static uint8_t RNDIS_SendEncapsulatedCommand(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, \r
void* Buffer, uint16_t Length) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t RNDIS_GetEncapsulatedResponse(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo,\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../../HighLevel/USBMode.h"\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_SI_CLASS_HOST_C\r
+#define __INCLUDE_FROM_SI_CLASS_HOST_C\r
+#define __INCLUDE_FROM_SI_DRIVER\r
#include "StillImage.h"\r
\r
uint8_t SImage_Host_ConfigurePipes(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo, uint16_t ConfigDescriptorSize,\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_SI_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/StillImage.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Error code for some Still Image Host functions, indicating a logical (and not hardware) error */\r
#define COMMAND_DATA_TIMEOUT_MS 10000\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_SI_CLASS_HOST_C)\r
+ #if defined(__INCLUDE_FROM_SI_CLASS_HOST_C)\r
static uint8_t DComp_SI_Host_NextSIInterface(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
static uint8_t DComp_SI_Host_NextSIInterfaceEndpoint(void* const CurrentDescriptor) ATTR_NON_NULL_PTR_ARG(1);\r
#endif\r
#ifndef _MIDI_CLASS_H_\r
#define _MIDI_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_MIDI_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ \r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
#ifndef _MS_CLASS_H_\r
#define _MS_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_MS_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ \r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
#ifndef _PRINTER_CLASS_H_\r
#define _PRINTER_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_PRINTER_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+\r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
#ifndef _RNDIS_CLASS_H_\r
#define _RNDIS_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_RNDIS_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ \r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
#ifndef _SI_CLASS_H_\r
#define _SI_CLASS_H_\r
\r
+ /* Macros: */\r
+ #define __INCLUDE_FROM_SI_DRIVER\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ \r
/* Includes: */\r
#include "../HighLevel/USBMode.h"\r
\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "ConfigDescriptor.h"\r
\r
#if defined(USB_CAN_BE_HOST)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */ \r
/* Macros: */\r
/** Mask for determining the type of an endpoint from an endpoint descriptor. This should then be compared\r
this software.\r
*/\r
\r
-#include "USBMode.h"\r
-\r
-#define INCLUDE_FROM_EVENTS_C\r
+#define __INCLUDE_FROM_EVENTS_C\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "Events.h"\r
\r
void USB_Event_Stub(void)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */ \r
/* Pseudo-Functions for Doxygen: */\r
- #if !defined(INCLUDE_FROM_EVENTS_C) || defined(__DOXYGEN__)\r
+ #if !defined(__INCLUDE_FROM_EVENTS_C) || defined(__DOXYGEN__)\r
/** Event for USB stack initialization failure. This event fires when the USB interface fails to\r
* initialize correctly due to a hardware or software fault.\r
*\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_EVENTS_C)\r
+ #if defined(__INCLUDE_FROM_EVENTS_C)\r
void USB_Event_Stub(void) ATTR_CONST;\r
\r
#if defined(USB_CAN_BE_BOTH)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Indicates that a given descriptor does not exist in the device. This can be used inside descriptors\r
#ifndef __STDREQTYPE_H__\r
#define __STDREQTYPE_H__\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Mask for the request type parameter, to indicate the direction of the request data (Host to Device\r
#ifndef __STREAMCALLBACK_H__\r
#define __STREAMCALLBACK_H__\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Used with the Endpoint and Pipe stream functions as the callback function parameter, indicating that the stream\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "USBInterrupt.h"\r
\r
void USB_INT_DisableAllInterrupts(void)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Macros: */\r
#ifndef __USBMODE_H__\r
#define __USBMODE_H__\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
#if defined(__DOXYGEN__)\r
/** Indicates that the target AVR microcontroller belongs to the Series 2 USB controller\r
this software.\r
*/\r
\r
-#include "USBMode.h"\r
-\r
-#define INCLUDE_FROM_USBTASK_C\r
+#define __INCLUDE_FROM_USBTASK_C\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "USBTask.h"\r
\r
volatile bool USB_IsInitialized;\r
#if defined(__cplusplus)\r
extern "C" {\r
#endif\r
+\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
\r
/* Public Interface - May be used in end-application: */\r
/* Global Variables: */\r
/* Private Interface - For use in library only: */\r
#if !defined(__DOXYGEN__)\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_USBTASK_C)\r
+ #if defined(__INCLUDE_FROM_USBTASK_C)\r
#if defined(USB_CAN_BE_HOST)\r
static void USB_HostTask(void);\r
#endif\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../HighLevel/USBMode.h"\r
\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
-#define INCLUDE_FROM_DEVCHAPTER9_C\r
+#define __INCLUDE_FROM_DEVCHAPTER9_C\r
#include "DevChapter9.h"\r
\r
uint8_t USB_ConfigurationNumber;\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
#if defined(USE_SINGLE_DEVICE_CONFIGURATION)\r
/* Function Prototypes: */\r
void USB_Device_ProcessControlRequest(void);\r
\r
- #if defined(INCLUDE_FROM_DEVCHAPTER9_C)\r
+ #if defined(__INCLUDE_FROM_DEVCHAPTER9_C)\r
static void USB_Device_SetAddress(void);\r
static void USB_Device_SetConfiguration(void);\r
static void USB_Device_GetConfiguration(void);\r
#if (defined(USE_RAM_DESCRIPTORS) && defined(USE_EEPROM_DESCRIPTORS))\r
#error USE_RAM_DESCRIPTORS and USE_EEPROM_DESCRIPTORS are mutually exclusive.\r
#endif\r
+\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
\r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../HighLevel/USBMode.h"\r
\r
#if defined(USB_CAN_BE_DEVICE)\r
\r
-#define INCLUDE_FROM_ENDPOINT_C\r
+#define __INCLUDE_FROM_ENDPOINT_C\r
#include "Endpoint.h"\r
\r
#if !defined(FIXED_CONTROL_ENDPOINT_SIZE)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Endpoint data direction mask for \ref Endpoint_ConfigureEndpoint(). This indicates that the endpoint\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../HighLevel/USBMode.h"\r
\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_HOST_C\r
+#define __INCLUDE_FROM_HOST_C\r
#include "Host.h"\r
\r
void USB_Host_ProcessNextHostState(void)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Indicates the fixed USB device address which any attached device is enumerated to when in\r
void USB_Host_ProcessNextHostState(void);\r
uint8_t USB_Host_WaitMS(uint8_t MS);\r
\r
- #if defined(INCLUDE_FROM_HOST_C)\r
+ #if defined(__INCLUDE_FROM_HOST_C)\r
static void USB_Host_ResetDevice(void);\r
#endif\r
#endif\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../HighLevel/USBMode.h"\r
\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_HOSTCHAPTER9_C\r
+#define __INCLUDE_FROM_HOSTCHAPTER9_C\r
#include "HostChapter9.h"\r
\r
uint8_t USB_Host_SendControlRequest(void* BufferPtr)\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Enums: */\r
/** Enum for the \ref USB_Host_SendControlRequest() return code, indicating the reason for the error\r
};\r
\r
/* Function Prototypes: */\r
- #if defined(INCLUDE_FROM_HOSTCHAPTER9_C)\r
+ #if defined(__INCLUDE_FROM_HOSTCHAPTER9_C)\r
static uint8_t USB_Host_WaitForIOS(const uint8_t WaitType);\r
#endif\r
#endif\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "LowLevel.h"\r
\r
#if (!defined(USB_HOST_ONLY) && !defined(USB_DEVICE_ONLY))\r
#endif\r
\r
/* Preprocessor Checks and Defines: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+\r
#if !defined(F_CLOCK)\r
#error F_CLOCK is not defined. You must define F_CLOCK to the frequency of the unprescaled input clock in your project makefile.\r
#endif\r
\r
#include "../../../Common/Common.h"\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Mask for the VBUS pulsing method of SRP, supported by some OTG devices.\r
this software.\r
*/\r
\r
+#define __INCLUDE_FROM_USB_DRIVER\r
#include "../HighLevel/USBMode.h"\r
\r
#if defined(USB_CAN_BE_HOST)\r
\r
-#define INCLUDE_FROM_PIPE_C\r
+#define __INCLUDE_FROM_PIPE_C\r
#include "Pipe.h"\r
\r
uint8_t USB_ControlPipeSize = PIPE_CONTROLPIPE_DEFAULT_SIZE;\r
extern "C" {\r
#endif\r
\r
+ /* Preprocessor Checks: */\r
+ #if !defined(__INCLUDE_FROM_USB_DRIVER)\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.\r
+ #endif\r
+ \r
/* Public Interface - May be used in end-application: */\r
/* Macros: */\r
/** Mask for \ref Pipe_GetErrorFlags(), indicating that an overflow error occurred in the pipe on the received data. */\r
#ifndef __USB_H__\r
#define __USB_H__\r
\r
+ /* Macros: */\r
+ #if !defined(__DOXYGEN__)\r
+ #define __INCLUDE_FROM_USB_DRIVER\r
+ #endif\r
+\r
/* Includes: */\r
#include "HighLevel/USBMode.h"\r
\r