Add high speed USB support for the UC3 devices containing a high speed USB controller.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / AVR8 / Device_AVR8.h
index 39b4cf7..08604ac 100644 (file)
@@ -50,6 +50,7 @@
 
        /* Includes: */
                #include "../../../../Common/Common.h"
+               #include "../USBController.h"
                #include "../StdDescriptors.h"
                #include "../USBInterrupt.h"
                #include "../Endpoint.h"
                        }
 
                        #if !defined(NO_SOF_EVENTS)
-                       /** Enables the device mode Start Of Frame events. When enabled, this causes the
-                        *  \ref EVENT_USB_Device_StartOfFrame() event to fire once per millisecond, synchronized to the USB bus,
-                        *  at the start of each USB frame when enumerated in device mode.
-                        *
-                        *  \note Not available when the \c NO_SOF_EVENTS compile time token is defined.
-                        */
-                       static inline void USB_Device_EnableSOFEvents(void) ATTR_ALWAYS_INLINE;
-                       static inline void USB_Device_EnableSOFEvents(void)
-                       {
-                               USB_INT_Enable(USB_INT_SOFI);
-                       }
+                               /** Enables the device mode Start Of Frame events. When enabled, this causes the
+                                *  \ref EVENT_USB_Device_StartOfFrame() event to fire once per millisecond, synchronized to the USB bus,
+                                *  at the start of each USB frame when enumerated in device mode.
+                                *
+                                *  \note Not available when the \c NO_SOF_EVENTS compile time token is defined.
+                                */
+                               static inline void USB_Device_EnableSOFEvents(void) ATTR_ALWAYS_INLINE;
+                               static inline void USB_Device_EnableSOFEvents(void)
+                               {
+                                       USB_INT_Enable(USB_INT_SOFI);
+                               }
 
-                       /** Disables the device mode Start Of Frame events. When disabled, this stops the firing of the
-                        *  \ref EVENT_USB_Device_StartOfFrame() event when enumerated in device mode.
-                        *
-                        *  \note Not available when the \c NO_SOF_EVENTS compile time token is defined.
-                        */
-                       static inline void USB_Device_DisableSOFEvents(void) ATTR_ALWAYS_INLINE;
-                       static inline void USB_Device_DisableSOFEvents(void)
-                       {
-                               USB_INT_Disable(USB_INT_SOFI);
-                       }
+                               /** Disables the device mode Start Of Frame events. When disabled, this stops the firing of the
+                                *  \ref EVENT_USB_Device_StartOfFrame() event when enumerated in device mode.
+                                *
+                                *  \note Not available when the \c NO_SOF_EVENTS compile time token is defined.
+                                */
+                               static inline void USB_Device_DisableSOFEvents(void) ATTR_ALWAYS_INLINE;
+                               static inline void USB_Device_DisableSOFEvents(void)
+                               {
+                                       USB_INT_Disable(USB_INT_SOFI);
+                               }
                        #endif
 
        /* Private Interface - For use in library only: */
        #if !defined(__DOXYGEN__)
                /* Inline Functions: */
-                       #if (defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR))
+                       #if defined(USB_DEVICE_OPT_LOWSPEED)
                        static inline void USB_Device_SetLowSpeed(void) ATTR_ALWAYS_INLINE;
                        static inline void USB_Device_SetLowSpeed(void)
                        {