Skip to content

bug in USBCore.cpp for 1.8 IDE due to header file changes in avr-gcc … #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cores/xmega/USBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#endif // check for GNUC >= or < 4.6


// bug in iox128a1u.h and iox64a1u.h
// bugs in iox128a1u.h and iox64a1u.h
// the definition for USB_TRNCOMPL_vect and USB_TRNCOMPL_vect_num is wrong
// this can be corrected here. bug reported 'upstream' for avr-libc 1.8.0 and 1.8.1
// https://savannah.nongnu.org/bugs/index.php?44279
Expand All @@ -87,6 +87,15 @@
#define USB_TRNCOMPL_vect _VECTOR(126) /* Transaction complete interrupt */
#endif // __AVR_ATxmega64A1U__, __AVR_ATxmega128A1U__

// additional compatibilty bugs between older and newer versions of iox128a1u.h and iox64a1u.h
#ifdef USB_EP_BUFSIZE_gm
#define USB_EP_SIZE_64_gc USB_EP_BUFSIZE_64_gc /* name change of definition from previous header */
#endif // USB_EP_BUFSIZE_gm

#ifndef CLK_USBEN_bm
#define CLK_USBEN_bm CLK_USBSEN_bm /* name change of definition from previous header */
#endif // CLK_USBEN_bm



// number of endpoints - to determine buffer array sizes
Expand Down