summaryrefslogtreecommitdiff
path: root/tinyusb/hal/hal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-01-17 11:03:43 +0700
committerhathach <[email protected]>2013-01-17 11:03:43 +0700
commit480ddb4fecb96c79cc046f3e4d03ec73a04abca0 (patch)
tree4bbe5fcc6a9650fac0f9a3555196336659fc4202 /tinyusb/hal/hal.h
parent10009cba99e244e593fd7013b07dd1c016b513a6 (diff)
start to add bsp and build configuration for embedded artist 4357
Diffstat (limited to 'tinyusb/hal/hal.h')
-rw-r--r--tinyusb/hal/hal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index 36fe9c5a3..4c317302b 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -58,9 +58,9 @@
#include "common/compiler/compiler.h"
#include "common/errors.h"
-#define MCU_LPC13UXX 0
-#define MCU_LPC11UXX 1
-#define MCU_LPC43XX 2
+#define MCU_LPC13UXX 1
+#define MCU_LPC11UXX 2
+#define MCU_LPC43XX 3
/** \brief USB hardware init
*
@@ -81,7 +81,9 @@ static inline void hal_interrupt_enable() ATTR_ALWAYS_INLINE;
*/
static inline void hal_interrupt_disable() ATTR_ALWAYS_INLINE;
-#if MCU == MCU_LPC11UXX
+#if MCU == 0
+ #error MCU is not defined or supported
+#elif MCU == MCU_LPC11UXX
#include "hal_lpc11uxx.h"
#elif MCU == MCU_LPC13UXX
#include "hal_lpc13uxx.h"