Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
Revision 30:74ca09725b68, committed 2014-08-20
- Comitter:
- yihui
- Date:
- Wed Aug 20 09:10:52 2014 +0000
- Parent:
- 29:b7a0ea455a0c
- Child:
- 31:ff9360a64520
- 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 |
--- 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);
--- 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
