Reintegrate the FullEPAddresses development branch into trunk.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / XMEGA / Device_XMEGA.h
index 85be0f1..268fe95 100644 (file)
                        static inline uint16_t USB_Device_GetFrameNumber(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
                        static inline uint16_t USB_Device_GetFrameNumber(void)
                        {
-                               return USB_EndpointTable.FrameNum;
+                               return ((USB_EndpointTable_t*)USB.EPPTR)->FrameNum;
                        }
 
                        #if !defined(NO_SOF_EVENTS)