aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-13 21:18:53 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-13 21:18:53 +0000
commitcb4e4a711e4d49aa2d0e413226c81318965510f2 (patch)
treef44ac3e877b5a1fdf01628dcb4df5a59313e86ec /LUFA/Common
parent9e8bf8c0cfba6613d10a90b0ce76bdbbc9a72c8b (diff)
downloadlufa-cb4e4a711e4d49aa2d0e413226c81318965510f2.tar.gz
lufa-cb4e4a711e4d49aa2d0e413226c81318965510f2.tar.bz2
lufa-cb4e4a711e4d49aa2d0e413226c81318965510f2.zip
Fix invalid definition of STDOUT_ASSERT().
Diffstat (limited to 'LUFA/Common')
-rw-r--r--LUFA/Common/ArchitectureSpecific.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Common/ArchitectureSpecific.h b/LUFA/Common/ArchitectureSpecific.h
index 3f5e43b02..4c562819a 100644
--- a/LUFA/Common/ArchitectureSpecific.h
+++ b/LUFA/Common/ArchitectureSpecific.h
@@ -70,7 +70,7 @@
*
* \note This macro is not available for all architectures.
*/
- #define JTAG_ENABLE() MACROS{ \
+ #define JTAG_ENABLE() MACROS{ \
__asm__ __volatile__ ( \
"in __tmp_reg__,__SREG__" "\n\t" \
"cli" "\n\t" \
@@ -136,7 +136,7 @@
*
* \param[in] Condition Condition that will be evaluated,
*/
- #define STDOUT_ASSERT(Condition) MACROS{ if (!(x)) { \
+ #define STDOUT_ASSERT(Condition) MACROS{ if (!(Condition)) { \
printf_P(PSTR("%s: Function \"%s\", Line %d: " \
"Assertion \"%s\" failed.\r\n"), \
__FILE__, __func__, __LINE__, #Condition); } }MACROE
@@ -160,7 +160,7 @@
#define JTAG_DEBUG_POINT() __asm__ __volatile__ ("nop" ::)
#define JTAG_DEBUG_BREAK() __asm__ __volatile__ ("breakpoint" ::)
#define JTAG_ASSERT(Condition) MACROS{ if (!(Condition)) { JTAG_DEBUG_BREAK(); } }MACROE
- #define STDOUT_ASSERT(Condition) MACROS{ if (!(x)) { \
+ #define STDOUT_ASSERT(Condition) MACROS{ if (!(Condition)) { \
printf("%s: Function \"%s\", Line %d: " \
"Assertion \"%s\" failed.\r\n"), \
__FILE__, __func__, __LINE__, #Condition); } }MACROE