aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-02-19 01:17:54 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-02-19 01:17:54 +0000
commit2f036ae2bfddb37840c6041595eb994efad8954d (patch)
treeff18a61d50f7288b7a52a2891a80c16719317739 /LUFA
parent1132488e8f80b43473ce4e53db9dd8ce12e87e13 (diff)
downloadlufa-2f036ae2bfddb37840c6041595eb994efad8954d.tar.gz
lufa-2f036ae2bfddb37840c6041595eb994efad8954d.tar.bz2
lufa-2f036ae2bfddb37840c6041595eb994efad8954d.zip
Add build test for forced single USB modes.
Fix UC3 Interrupt Management platform driver not compiling under C++.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/DoxygenPages/ChangeLog.txt3
-rw-r--r--LUFA/DoxygenPages/CompileTimeTokens.txt2
-rw-r--r--LUFA/Platform/UC3/InterruptManagement.c1
-rw-r--r--LUFA/Platform/UC3/InterruptManagement.h6
4 files changed, 8 insertions, 4 deletions
diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt
index f55512832..5b8f190cf 100644
--- a/LUFA/DoxygenPages/ChangeLog.txt
+++ b/LUFA/DoxygenPages/ChangeLog.txt
@@ -22,7 +22,8 @@
* - Added support for the Atmel XMEGA B1 Xplained board
* - Added Serial USART peripheral driver for the XMEGA architecture
* - Added Master Mode SPI USART peripheral driver for the XMEGA and AVR8 architectures
- * - Added build tests to verify correct compilation of as many modules as possible under as many architectures as possible
+ * - Added build test to verify correct compilation of as many modules as possible under as many architectures as possible under the C and C++ languages
+ * - Added build test to verify correct compilation of the USB driver when forced into single USB mode under as many architectures as possible
* - Library Applications:
* - Added User Application APIs to the CDC and DFU class bootloaders
* - Added INVERTED_ISP_MISO compile time option to the AVRISP-MKII clone project (thanks to Chuck Rohs)
diff --git a/LUFA/DoxygenPages/CompileTimeTokens.txt b/LUFA/DoxygenPages/CompileTimeTokens.txt
index 01b09e6f6..61c6f2757 100644
--- a/LUFA/DoxygenPages/CompileTimeTokens.txt
+++ b/LUFA/DoxygenPages/CompileTimeTokens.txt
@@ -81,7 +81,7 @@
* \section Sec_SummaryUSBTokens General USB Driver Related Tokens
* This section describes compile tokens which affect USB driver stack as a whole in the LUFA library.
*
- * - <b>ORDERED_EP_CONFIG</b> - (\ref Group_EndpointManagement , \ref Group_PipeManagement) - <i>AVR8, UC3</i> \n
+ * - <b>ORDERED_EP_CONFIG</b> - (\ref Group_EndpointManagement , \ref Group_PipeManagement) - <i>AVR8, UC3</i> \n
* The USB AVRs do not allow for Endpoints and Pipes to be configured out of order; they <i>must</i> be configured in an ascending order to
* prevent data corruption issues. However, by default LUFA employs a workaround to allow for unordered Endpoint/Pipe initialization. This compile
* time token may be used to restrict the initialization order to ascending indexes only in exchange for a smaller compiled binary size. Use
diff --git a/LUFA/Platform/UC3/InterruptManagement.c b/LUFA/Platform/UC3/InterruptManagement.c
index 3eb211bda..7d883c639 100644
--- a/LUFA/Platform/UC3/InterruptManagement.c
+++ b/LUFA/Platform/UC3/InterruptManagement.c
@@ -28,6 +28,7 @@
this software.
*/
+#define __INCLUDE_FROM_INTMANAGEMENT_C
#include "InterruptManagement.h"
/** Interrupt vector table, containing the ISR to call for each interrupt group */
diff --git a/LUFA/Platform/UC3/InterruptManagement.h b/LUFA/Platform/UC3/InterruptManagement.h
index 4c2721077..8dd1dc3d6 100644
--- a/LUFA/Platform/UC3/InterruptManagement.h
+++ b/LUFA/Platform/UC3/InterruptManagement.h
@@ -84,9 +84,11 @@
typedef void (*InterruptHandlerPtr_t)(void);
/* External Variables: */
- extern const void EVBA_Table;
- extern const uint32_t Autovector_Table[];
+ #if defined(__INCLUDE_FROM_INTMANAGEMENT_C)
+ extern const void EVBA_Table;
+ #endif
extern InterruptHandlerPtr_t InterruptHandlers[AVR32_INTC_NUM_INT_GRPS];
+ extern const uint32_t Autovector_Table[];
#endif
/* Public Interface - May be used in end-application: */