USBDevice library fork to add multi-function (e.g. Keyboard(HID) + Virtual COM Port(CDC)) usb support.
Fork of USBDevice by
Revision 23:ecbbaf64bc3d, committed 2014-05-10
- Comitter:
- mbed_official
- Date:
- Sat May 10 08:00:27 2014 +0100
- Parent:
- 22:5b7d31d9d3f3
- Child:
- 24:33920e3786aa
- Commit message:
- Synchronized with git revision ec1f338b134b8e9c5a13e47e97890af2eeff4b79
Full URL: https://github.com/mbedmicro/mbed/commit/ec1f338b134b8e9c5a13e47e97890af2eeff4b79/
[LPC11U35_501] USBDevice support
Changed in this revision
| USBDevice/USBHAL_LPC11U.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice/USBHAL_LPC11U.cpp Wed Apr 02 21:00:41 2014 +0100
+++ b/USBDevice/USBHAL_LPC11U.cpp Sat May 10 08:00:27 2014 +0100
@@ -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)
+#if defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC1347) || defined(TARGET_LPC11U35_501)
#if defined(TARGET_LPC1347)
#define USB_IRQ USB_IRQ_IRQn
-#elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401)
+#elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501)
#define USB_IRQ USB_IRQn
#endif
@@ -145,7 +145,7 @@
epCallback[6] = &USBHAL::EP4_OUT_callback;
epCallback[7] = &USBHAL::EP4_IN_callback;
- #if defined(TARGET_LPC11U35_401)
+ #if defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501)
// USB_VBUS input with pull-down
LPC_IOCON->PIO0_3 = 0x00000009;
#endif
