File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7373#endif // check for GNUC >= or < 4.6
7474
7575
76- // bug in iox128a1u.h and iox64a1u.h
76+ // bugs in iox128a1u.h and iox64a1u.h
7777// the definition for USB_TRNCOMPL_vect and USB_TRNCOMPL_vect_num is wrong
7878// this can be corrected here. bug reported 'upstream' for avr-libc 1.8.0 and 1.8.1
7979// https://savannah.nongnu.org/bugs/index.php?44279
8787#define USB_TRNCOMPL_vect _VECTOR (126 ) /* Transaction complete interrupt */
8888#endif // __AVR_ATxmega64A1U__, __AVR_ATxmega128A1U__
8989
90+ // additional compatibilty bugs between older and newer versions of iox128a1u.h and iox64a1u.h
91+ #ifdef USB_EP_BUFSIZE_gm
92+ #define USB_EP_SIZE_64_gc USB_EP_BUFSIZE_64_gc /* name change of definition from previous header */
93+ #endif // USB_EP_BUFSIZE_gm
94+
95+ #ifndef CLK_USBEN_bm
96+ #define CLK_USBEN_bm CLK_USBSEN_bm /* name change of definition from previous header */
97+ #endif // CLK_USBEN_bm
98+
9099
91100
92101// number of endpoints - to determine buffer array sizes
You can’t perform that action at this time.
0 commit comments