From 4ec23ea786117b338dd8c070df1da15b27e98f3c Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 10 Dec 2012 15:59:10 +0700 Subject: add build and project settings for lpc43xx --- tinyusb/.cproject | 180 ++++++++++++++++++++++++++++++++++++++++++++- tinyusb/hal/hal.h | 3 +- tinyusb/hal/hal_lpc11uxx.h | 3 - tinyusb/hal/hal_lpc13uxx.h | 3 - tinyusb/tusb_cfg.h | 4 +- 5 files changed, 183 insertions(+), 10 deletions(-) (limited to 'tinyusb') diff --git a/tinyusb/.cproject b/tinyusb/.cproject index 4a33ccbad..06a0c2b48 100644 --- a/tinyusb/.cproject +++ b/tinyusb/.cproject @@ -202,7 +202,7 @@ - + @@ -357,6 +357,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h index 10fcc6155..467f75f37 100644 --- a/tinyusb/hal/hal.h +++ b/tinyusb/hal/hal.h @@ -82,8 +82,9 @@ static inline void hal_interrupt_disable() ATTR_ALWAYS_INLINE; #elif MCU == MCU_LPC13UXX #include "hal_lpc13uxx.h" #elif MCU == MCU_LPC43XX - + #include "hal_lpc43xx.h" #endif + #ifdef __cplusplus } #endif diff --git a/tinyusb/hal/hal_lpc11uxx.h b/tinyusb/hal/hal_lpc11uxx.h index f65f95ad0..1f1d6779e 100644 --- a/tinyusb/hal/hal_lpc11uxx.h +++ b/tinyusb/hal/hal_lpc11uxx.h @@ -63,9 +63,6 @@ static inline void hal_interrupt_enable() NVIC_EnableIRQ(USB_IRQn); } -/** - * Disable USB Interrupt - */ static inline void hal_interrupt_disable() { NVIC_DisableIRQ(USB_IRQn); diff --git a/tinyusb/hal/hal_lpc13uxx.h b/tinyusb/hal/hal_lpc13uxx.h index 795782fc3..f29bab7b9 100644 --- a/tinyusb/hal/hal_lpc13uxx.h +++ b/tinyusb/hal/hal_lpc13uxx.h @@ -62,9 +62,6 @@ static inline void hal_interrupt_enable() NVIC_EnableIRQ(USB_IRQ_IRQn); } -/** - * Disable USB Interrupt - */ static inline void hal_interrupt_disable() { NVIC_DisableIRQ(USB_IRQ_IRQn); diff --git a/tinyusb/tusb_cfg.h b/tinyusb/tusb_cfg.h index efb236cef..6cda15830 100644 --- a/tinyusb/tusb_cfg.h +++ b/tinyusb/tusb_cfg.h @@ -57,10 +57,10 @@ #define CFG_TUSB_DEBUG_LEVEL 3 /// Enable Host Support -//#define CFG_TUSB_HOST +#define CFG_TUSB_HOST /// Enable Device Support -#define CFG_TUSB_DEVICE +//#define CFG_TUSB_DEVICE /// Enable CDC Support #define CFG_CLASS_CDC -- cgit v1.3.1