this software.\r
*/\r
\r
-/** \file\r
+/** \ingroup Group_USB\r
+ * @defgroup Group_USBManagement USB Interface Management\r
*\r
- * Main low level USB driver. This module manages the low level initialization and shut down of the USB AVR's\r
- * USB interface in either device or (if supported) host mode.\r
+ * Functions, macros, variables, enums and types related to the setup and management of the USB interface.\r
+ *\r
+ * @{\r
*/\r
\r
#ifndef __USBLOWLEVEL_H__\r
#include <avr/interrupt.h>\r
#include <stdbool.h>\r
\r
- #include "USBMode.h"\r
+ #include "../HighLevel/USBMode.h"\r
+\r
#include "../../../Common/Common.h"\r
+ #include "../HighLevel/USBMode.h"\r
#include "../HighLevel/Events.h"\r
#include "../HighLevel/USBTask.h"\r
#include "../HighLevel/USBInterrupt.h"\r
/* Preprocessor Checks and Defines: */\r
#if !defined(F_CLOCK)\r
#error F_CLOCK is not defined. You must device F_CLOCK to the frequency of the unprescaled input clock in your project makefile.\r
- #define F_CLOCK 0\r
#endif\r
\r
#if (F_CLOCK == 8000000)\r
*\r
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.\r
*/\r
- #define EP_TYPE_CONTROL 0b00\r
+ #define EP_TYPE_CONTROL 0x00\r
\r
/** Mask for an ISOCHRONOUS type endpoint or pipe.\r
*\r
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.\r
*/\r
- #define EP_TYPE_ISOCHRONOUS 0b01\r
+ #define EP_TYPE_ISOCHRONOUS 0x01\r
\r
/** Mask for a BULK type endpoint or pipe.\r
*\r
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.\r
*/\r
- #define EP_TYPE_BULK 0b10\r
+ #define EP_TYPE_BULK 0x02\r
\r
/** Mask for an INTERRUPT type endpoint or pipe.\r
*\r
* \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.\r
*/\r
- #define EP_TYPE_INTERRUPT 0b11\r
-\r
- /** Mask for determining the type of an endpoint or pipe. This should then be compared with the\r
- * EP_TYPE_* macros elsewhere in this module to determine the exact type of the endpoint or pipe.\r
- *\r
- * \note See Endpoint.h and Pipe.h headers for endpoint/pipe functions.\r
- */\r
- #define EP_TYPE_MASK 0b11\r
+ #define EP_TYPE_INTERRUPT 0x03\r
\r
#if defined(USB_FULL_CONTROLLER) || defined(USB_MODIFIED_FULL_CONTROLLER) || defined(__DOXYGEN__)\r
/** Returns boolean true if the VBUS line is currently high (i.e. the USB host is supplying power),\r
#endif\r
\r
#endif\r
+\r
+/** @} */\r