#define __HOSTCHAPTER9_H__\r
\r
/* Includes: */\r
- #include <avr/io.h>\r
- #include <stdbool.h>\r
+ #if defined(__AVR32__)\r
+ #include <avr32/io.h>\r
+ #include <stdint.h>\r
+ #include <stdbool.h>\r
+ #elif defined(__AVR__)\r
+ #include <avr/io.h>\r
+ #include <stdbool.h>\r
+ #endif\r
\r
#include "LowLevel.h"\r
#include "../HighLevel/USBMode.h"\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/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