USB device library for Xadow M0

Dependents:   xadow_m0_accelerometer xadow_m0_ada_gps xadow_m0_SD_Hello Xadow_SC16IS750_Test ... more

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
yihui
Date:
Wed Aug 20 09:10:52 2014 +0000
Parent:
29:b7a0ea455a0c
Commit message:
add Xadow M0 support

Changed in this revision

USBDevice/USBHAL.h Show annotated file Show diff for this revision Revisions of this file
USBDevice/USBHAL_LPC11U.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b7a0ea455a0c -r 74ca09725b68 USBDevice/USBHAL.h
--- a/USBDevice/USBHAL.h	Mon Aug 18 13:45:19 2014 +0100
+++ b/USBDevice/USBHAL.h	Wed Aug 20 09:10:52 2014 +0000
@@ -77,7 +77,7 @@
 #if !defined(TARGET_STM32F4)
     virtual bool EP4_OUT_callback(){return false;};
     virtual bool EP4_IN_callback(){return false;};
-#if !defined(TARGET_LPC11U24)
+#if !defined(TARGET_LPC11UXX)
     virtual bool EP5_OUT_callback(){return false;};
     virtual bool EP5_IN_callback(){return false;};
     virtual bool EP6_OUT_callback(){return false;};
@@ -108,7 +108,7 @@
     static void _usbisr(void);
     static USBHAL * instance;
 
-#if defined(TARGET_LPC11U24)
+#if defined(TARGET_LPC11UXX)
         bool (USBHAL::*epCallback[10 - 2])(void);
 #elif defined(TARGET_STM32F4XX)
         bool (USBHAL::*epCallback[8 - 2])(void);
diff -r b7a0ea455a0c -r 74ca09725b68 USBDevice/USBHAL_LPC11U.cpp
--- a/USBDevice/USBHAL_LPC11U.cpp	Mon Aug 18 13:45:19 2014 +0100
+++ b/USBDevice/USBHAL_LPC11U.cpp	Wed Aug 20 09:10:52 2014 +0000
@@ -16,11 +16,11 @@
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
-#if defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1347) || defined(TARGET_LPC11U35_501) || defined(TARGET_LPC11U68) || defined(TARGET_LPC1549)
+#if defined(TARGET_LPC11UXX) || defined(TARGET_LPC1347) || defined(TARGET_LPC1549)
 
 #if defined(TARGET_LPC1347) || defined(TARGET_LPC1549)
 #define USB_IRQ USB_IRQ_IRQn
-#elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501) || defined(TARGET_LPC11U68)
+#elif defined(TARGET_LPC11UXX)
 #define USB_IRQ USB_IRQn
 #endif