diff options
| author | hathach <[email protected]> | 2012-12-07 16:22:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-12-07 16:22:47 +0700 |
| commit | cd74f4f0ed9750f0019b0b66b5d921d68b4ba356 (patch) | |
| tree | 9b8541103dfc33603e4ab5050d87245731b3e482 /tinyusb/common | |
| parent | cc45f35d706ee9388be422d9a89ab204fac2a591 (diff) | |
work with lpc11u37 (lpc11uxx) on kevin's board
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 2 | ||||
| -rw-r--r-- | tinyusb/common/mcu/mcu.h | 6 | ||||
| -rw-r--r-- | tinyusb/common/mcu/mcu_lpc11uxx.h (renamed from tinyusb/common/mcu/mcu_lpc11xx.h) | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index 8ca15ae3d..9bcb17a7c 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -85,7 +85,7 @@ /// The nonnull attribute specifies that some function parameters should be non-null pointers. f the compiler determines that a null pointer is passed in an argument slot marked as non-null, and the -Wnonnull option is enabled, a warning is issued. All pointer arguments are marked as non-null #define ATTR_NON_NULL __attribute__ ((nonull)) -/// Many functions have no effects except the return value and their return value depends only on the parameters and/or global variables. Such a function can be subject to common subexpression elimination and loop optimization just as an arithmetic operator would be. These functions should be declared with the attribute pur +/// Many functions have no effects except the return value and their return value depends only on the parameters and/or global variables. Such a function can be subject to common subexpression elimination and loop optimization just as an arithmetic operator would be. These functions should be declared with the attribute pure #define ATTR_PURE __attribute__ ((pure)) /// Many functions do not examine any values except their arguments, and have no effects except the return value. Basically this is just slightly more strict class than the pure attribute below, since function is not allowed to read global memory. diff --git a/tinyusb/common/mcu/mcu.h b/tinyusb/common/mcu/mcu.h index ca0be9dd9..7e492865e 100644 --- a/tinyusb/common/mcu/mcu.h +++ b/tinyusb/common/mcu/mcu.h @@ -51,7 +51,9 @@ #ifndef _TUSB_MCU_H_ #define _TUSB_MCU_H_ -//#define MCU MCU_LPC43XX +#ifndef MCU // elcipse view +#define MCU MCU_LPC11UXX +#endif #define MCU_LPC13UXX 1 #define MCU_LPC11UXX 2 @@ -65,7 +67,7 @@ #elif MCU == MCU_LPC43XX #include "mcu_lpc43xx.h" #elif MCU == MCU_LPC11UXX - #include "mcu_lpc11xx.h" + #include "mcu_lpc11uxx.h" #else #error MCU is not defined or supported yet #endif diff --git a/tinyusb/common/mcu/mcu_lpc11xx.h b/tinyusb/common/mcu/mcu_lpc11uxx.h index 3b7c00f63..327bf4e04 100644 --- a/tinyusb/common/mcu/mcu_lpc11xx.h +++ b/tinyusb/common/mcu/mcu_lpc11uxx.h @@ -46,13 +46,13 @@ * @{ */ -#ifndef MCU_LPC11XX_H_ -#define MCU_LPC11XX_H_ +#ifndef _TUSB_MCU_LPC11UXX_H_ +#define _TUSB_MCU_LPC11UXX_H_ #include "LPC11Uxx.h" #define DEVICE_ROMDRIVER -#endif /* MCU_LPC11XX_H_ */ +#endif /* _TUSB_MCU_LPC11UXX_H_ */ /** @} */ |
