Tweak the LUFA config for the Mass Storage class bootloader to reduce the compiled...
[pub/USBasp.git] / LUFA / Common / ArchitectureSpecific.h
index d92cda9..4c56281 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2012.
+     Copyright (C) Dean Camera, 2013.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2013  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
@@ -70,7 +70,7 @@
                                         *
                                         *  \note This macro is not available for all architectures.
                                         */
                                         *
                                         *  \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"                         \
                                                                                                                                        __asm__ __volatile__ (               \
                                                                                                                                        "in __tmp_reg__,__SREG__" "\n\t"     \
                                                                                                                                        "cli" "\n\t"                         \
                                 *
                                 *  \param[in] Condition  Condition that will be evaluated,
                                 */
                                 *
                                 *  \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
                                                                                     printf_P(PSTR("%s: Function \"%s\", Line %d: "     \
                                                                                                   "Assertion \"%s\" failed.\r\n"),     \
                                                                                                   __FILE__, __func__, __LINE__, #Condition); } }MACROE
                                #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 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
                                                                                     printf("%s: Function \"%s\", Line %d: "     \
                                                                                            "Assertion \"%s\" failed.\r\n"),     \
                                                                                            __FILE__, __func__, __LINE__, #Condition); } }MACROE