/* Includes: */
#include "../../../../Common/Common.h"
- #include "../Endpoint.h"
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)
#endif
/* Private Interface - For use in library only: */
- #if !defined(__DOXYGEN__)
+ #if !defined(__DOXYGEN__)
+ /* External Variables: */
+ extern volatile uint32_t USB_Endpoint_SelectedEndpoint;
+
/* Enums: */
enum USB_Interrupts_t
{
AVR32_USBB.UDINTESET.sofes = true;
break;
case USB_INT_RXSTPI:
- (&AVR32_USBB.UECON0SET)[USB_SelectedEndpoint].rxstpes = true;
+ (&AVR32_USBB.UECON0SET)[USB_Endpoint_SelectedEndpoint].rxstpes = true;
break;
#endif
#if defined(USB_CAN_BE_HOST)
AVR32_USBB.UDINTECLR.sofec = true;
break;
case USB_INT_RXSTPI:
- (&AVR32_USBB.UECON0CLR)[USB_SelectedEndpoint].rxstpec = true;
+ (&AVR32_USBB.UECON0CLR)[USB_Endpoint_SelectedEndpoint].rxstpec = true;
break;
#endif
#if defined(USB_CAN_BE_HOST)
(void)AVR32_USBB.UDINTCLR;
break;
case USB_INT_RXSTPI:
- (&AVR32_USBB.UESTA0CLR)[USB_SelectedEndpoint].rxstpic = true;
+ (&AVR32_USBB.UESTA0CLR)[USB_Endpoint_SelectedEndpoint].rxstpic = true;
break;
#endif
#if defined(USB_CAN_BE_HOST)
case USB_INT_SOFI:
return AVR32_USBB.UDINTE.sofe;
case USB_INT_RXSTPI:
- return (&AVR32_USBB.UECON0)[USB_SelectedEndpoint].rxstpe;
+ return (&AVR32_USBB.UECON0)[USB_Endpoint_SelectedEndpoint].rxstpe;
#endif
#if defined(USB_CAN_BE_HOST)
case USB_INT_HSOFI:
case USB_INT_SOFI:
return AVR32_USBB.UDINT.sof;
case USB_INT_RXSTPI:
- return (&AVR32_USBB.UESTA0)[USB_SelectedEndpoint].rxstpi;
+ return (&AVR32_USBB.UESTA0)[USB_Endpoint_SelectedEndpoint].rxstpi;
#endif
#if defined(USB_CAN_BE_HOST)
case USB_INT_HSOFI: