summaryrefslogtreecommitdiff
path: root/tinyusb/hal/hal_lpc11uxx.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-13 12:40:11 +0700
committerhathach <[email protected]>2013-11-13 12:40:11 +0700
commit92d9c36dbcfd933f872c91ad061e2e5ab184b020 (patch)
tree1864f26f579d65878f1cbd09d65b8cbb90b3f02b /tinyusb/hal/hal_lpc11uxx.c
parentd8f32a79fc9e04136afcd8f4d79abe7a9b0c2eb9 (diff)
able to build and run cdc device demo on lpc11uxx
Diffstat (limited to 'tinyusb/hal/hal_lpc11uxx.c')
-rw-r--r--tinyusb/hal/hal_lpc11uxx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tinyusb/hal/hal_lpc11uxx.c b/tinyusb/hal/hal_lpc11uxx.c
index 4395a705c..9cb188e9c 100644
--- a/tinyusb/hal/hal_lpc11uxx.c
+++ b/tinyusb/hal/hal_lpc11uxx.c
@@ -51,6 +51,7 @@ tusb_error_t hal_init(void)
address the wrong status in VBUSDebouncing bit in CmdStatus register. */
LPC_IOCON->PIO0_3 &= ~0x1F;
LPC_IOCON->PIO0_3 |= (0x01<<0); /* Secondary function VBUS */
+
LPC_IOCON->PIO0_6 &= ~0x07;
LPC_IOCON->PIO0_6 |= (0x01<<0); /* Secondary function SoftConn */