diff options
| author | hathach <[email protected]> | 2013-11-25 12:48:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-25 12:48:27 +0700 |
| commit | a5ba28355782eedb967c4ec41a5b83323118251d (patch) | |
| tree | 4f4fa0bfa3ba3fb8d781690fb3649ae834541ee0 /tinyusb/hal | |
| parent | 41ffcaf4a508a421a49d8650777d8b0325b28921 (diff) | |
change MCU to TUSB_CFG_MCU
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal.h | 10 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc11uxx.c | 2 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc13uxx.c | 2 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.c | 2 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index c6f44f47c..b26804efc 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -86,13 +86,13 @@ static inline void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE; //--------------------------------------------------------------------+ // INCLUDE DRIVEN //--------------------------------------------------------------------+ -#if MCU == MCU_LPC11UXX +#if TUSB_CFG_MCU == MCU_LPC11UXX #include "hal_lpc11uxx.h" -#elif MCU == MCU_LPC13UXX +#elif TUSB_CFG_MCU == MCU_LPC13UXX #include "hal_lpc13uxx.h" -#elif MCU == MCU_LPC43XX +#elif TUSB_CFG_MCU == MCU_LPC43XX #include "hal_lpc43xx.h" -#elif MCU == MCU_LPC175X_6X +#elif TUSB_CFG_MCU == MCU_LPC175X_6X #include "hal_lpc175x_6x.h" #else #error MCU is not defined or supported yet @@ -107,7 +107,7 @@ static inline bool hal_debugger_is_attached(void) ATTR_PURE ATTR_ALWAYS_INLINE; static inline bool hal_debugger_is_attached(void) { // TODO check core M3/M4 defined instead -#if !defined(_TEST_) && !(MCU==MCU_LPC11UXX) +#if !defined(_TEST_) && !(TUSB_CFG_MCU==MCU_LPC11UXX) return ( (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) == CoreDebug_DHCSR_C_DEBUGEN_Msk ); #else return true; // force to break into breakpoint diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c index c1e504731..60177485d 100644 --- a/tinyusb/hal/hal_lpc11uxx.c +++ b/tinyusb/hal/hal_lpc11uxx.c @@ -39,7 +39,7 @@ #include "common/common.h" #include "hal.h" -#if MCU == MCU_LPC11UXX +#if TUSB_CFG_MCU == MCU_LPC11UXX tusb_error_t hal_init(void) { diff --git a/tinyusb/hal/hal_lpc13uxx.c b/tinyusb/hal/hal_lpc13uxx.c index 4e986faac..706f5004c 100644 --- a/tinyusb/hal/hal_lpc13uxx.c +++ b/tinyusb/hal/hal_lpc13uxx.c @@ -39,7 +39,7 @@ #include "common/common.h" #include "hal.h" -#if MCU == MCU_LPC13UXX +#if TUSB_CFG_MCU == MCU_LPC13UXX tusb_error_t hal_init(void) { diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c index ae63b7b7a..60b66a5e4 100644 --- a/tinyusb/hal/hal_lpc175x_6x.c +++ b/tinyusb/hal/hal_lpc175x_6x.c @@ -38,7 +38,7 @@ #include "tusb_option.h" -#if MCU == MCU_LPC175X_6X +#if TUSB_CFG_MCU == MCU_LPC175X_6X //--------------------------------------------------------------------+ // INCLUDE diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index 9cb07deff..fd64fc59a 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -39,7 +39,7 @@ #include "common/common.h"
#include "hal.h"
-#if MCU == MCU_LPC43XX
+#if TUSB_CFG_MCU == MCU_LPC43XX
#include "lpc43xx_cgu.h"
#include "lpc43xx_scu.h"
|
