X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/fa85c5e4169c27cb76c24e89cab63c2b062739c4..32e735b2b2eefb74e0415a5826692f7ba8c0a984:/LUFA/Drivers/USB/LowLevel/LowLevel.h diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.h b/LUFA/Drivers/USB/LowLevel/LowLevel.h index 253d0180e..5c474df70 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.h +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.h @@ -28,10 +28,12 @@ this software. */ -/** \file +/** \ingroup Group_USB + * @defgroup Group_USBManagement USB Interface Management * - * Main low level USB driver. This module manages the low level initialization and shut down of the USB AVR's - * USB interface in either device or (if supported) host mode. + * Functions, macros, variables, enums and types related to the setup and management of the USB interface. + * + * @{ */ #ifndef __USBLOWLEVEL_H__ @@ -42,8 +44,10 @@ #include #include - #include "USBMode.h" + #include "../HighLevel/USBMode.h" + #include "../../../Common/Common.h" + #include "../HighLevel/USBMode.h" #include "../HighLevel/Events.h" #include "../HighLevel/USBTask.h" #include "../HighLevel/USBInterrupt.h" @@ -68,7 +72,6 @@ /* Preprocessor Checks and Defines: */ #if !defined(F_CLOCK) #error F_CLOCK is not defined. You must device F_CLOCK to the frequency of the unprescaled input clock in your project makefile. - #define F_CLOCK 0 #endif #if (F_CLOCK == 8000000) @@ -158,32 +161,25 @@ * * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions. */ - #define EP_TYPE_CONTROL 0b00 + #define EP_TYPE_CONTROL 0x00 /** Mask for an ISOCHRONOUS type endpoint or pipe. * * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions. */ - #define EP_TYPE_ISOCHRONOUS 0b01 + #define EP_TYPE_ISOCHRONOUS 0x01 /** Mask for a BULK type endpoint or pipe. * * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions. */ - #define EP_TYPE_BULK 0b10 + #define EP_TYPE_BULK 0x02 /** Mask for an INTERRUPT type endpoint or pipe. * * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions. */ - #define EP_TYPE_INTERRUPT 0b11 - - /** Mask for determining the type of an endpoint or pipe. This should then be compared with the - * EP_TYPE_* macros elsewhere in this module to determine the exact type of the endpoint or pipe. - * - * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions. - */ - #define EP_TYPE_MASK 0b11 + #define EP_TYPE_INTERRUPT 0x03 #if defined(USB_FULL_CONTROLLER) || defined(USB_MODIFIED_FULL_CONTROLLER) || defined(__DOXYGEN__) /** Returns boolean true if the VBUS line is currently high (i.e. the USB host is supplying power), @@ -381,3 +377,5 @@ #endif #endif + +/** @} */