#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
*\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