X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..fc31973daffea3506051ce51a5f79383ce0867d6:/LUFA/Drivers/USB/LowLevel/DevChapter9.h diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.h b/LUFA/Drivers/USB/LowLevel/DevChapter9.h index 3d49062ba..868c3fab2 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.h +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.h @@ -28,6 +28,16 @@ this software. */ +/** \file + * \brief USB device standard request management. + * + * This file contains the function prototypes neccesary for the processing of incomming standard control requests + * when the library is in USB device mode. + * + * \note This file should not be included directly. It is automatically included as needed by the USB driver + * dispatch header located in LUFA/Drivers/USB/USB.h. + */ + #ifndef __DEVCHAPTER9_H__ #define __DEVCHAPTER9_H__ @@ -36,6 +46,7 @@ #include #include #include + #include #include "../HighLevel/StdDescriptors.h" #include "../HighLevel/Events.h" @@ -48,6 +59,11 @@ extern "C" { #endif + /* Preprocessor Checks: */ + #if !defined(__INCLUDE_FROM_USB_DRIVER) + #error Do not include this file directly. Include LUFA/Drivers/USB/USB.h instead. + #endif + /* Public Interface - May be used in end-application: */ /* Macros: */ #if defined(USE_SINGLE_DEVICE_CONFIGURATION) @@ -88,6 +104,7 @@ * * \note This variable should be treated as read-only in the user application, and never manually * changed in value. + * \n\n * * \note To reduce FLASH usage of the compiled applications where Remote Wakeup is not supported, * this global and the underlying management code can be disabled by defining the @@ -124,7 +141,7 @@ /* Function Prototypes: */ void USB_Device_ProcessControlRequest(void); - #if defined(INCLUDE_FROM_DEVCHAPTER9_C) + #if defined(__INCLUDE_FROM_DEVCHAPTER9_C) static void USB_Device_SetAddress(void); static void USB_Device_SetConfiguration(void); static void USB_Device_GetConfiguration(void);