summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-06 14:53:18 +0700
committerhathach <[email protected]>2013-11-06 14:53:18 +0700
commit60d444b4521428511fdf7864c9c6e2193f5572b6 (patch)
tree58511da2052f8f2b7079dcfec8ecf915207e4015 /tinyusb/device
parent58b41a05db5bf564a4d93312d8fdee368604ed55 (diff)
fix a bug with USB1, but still cannot get interrupt occurred on USB1
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/dcd_lpc43xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/device/dcd_lpc43xx.c b/tinyusb/device/dcd_lpc43xx.c
index 9d38a3d91..cbff0a67f 100644
--- a/tinyusb/device/dcd_lpc43xx.c
+++ b/tinyusb/device/dcd_lpc43xx.c
@@ -256,7 +256,8 @@ static void lpc43xx_controller_init(uint8_t coreid)
lpc_usb->USBCMD_D &= ~0x00FF0000; // Interrupt Threshold Interval = 0
lpc_usb->ENDPOINTLISTADDR = (uint32_t) p_dcd->qhd; // Endpoint List Address has to be 2K alignment
- lpc_usb->USBINTR_D = INT_MASK_USB | INT_MASK_ERROR | INT_MASK_PORT_CHANGE | INT_MASK_RESET | INT_MASK_SUSPEND; // | INT_MASK_SOF| INT_MASK_NAK;
+ lpc_usb->USBSTS_D = lpc_usb->USBSTS_D;
+ lpc_usb->USBINTR_D = INT_MASK_USB | INT_MASK_ERROR | INT_MASK_PORT_CHANGE | INT_MASK_RESET | INT_MASK_SUSPEND; // | INT_MASK_SOF| INT_MASK_NAK;
}
tusb_error_t dcd_init(void)