summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-08 14:38:06 +0700
committerhathach <[email protected]>2018-03-08 14:47:48 +0700
commit4ddac8bc88822fc7439b8b2532fe8234d74fee8d (patch)
treee85857212102a3174b11a348cc6e068692342332 /hw
parent849d600d88d965b3db39cf112ea24972a673950e (diff)
enhance cdc device API
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/board.c2
-rw-r--r--hw/mcu/nxp/lpc43xx/hal/dcd_lpc43xx.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c
index c0d7c25b5..575e3859a 100644
--- a/hw/bsp/board.c
+++ b/hw/bsp/board.c
@@ -37,7 +37,7 @@
/**************************************************************************/
#include "board.h"
-#include "app_os_prio.h"
+//#include "app_os_prio.h"
#if TUSB_CFG_OS == TUSB_OS_NONE
diff --git a/hw/mcu/nxp/lpc43xx/hal/dcd_lpc43xx.c b/hw/mcu/nxp/lpc43xx/hal/dcd_lpc43xx.c
index 4c5ee53f3..a7ec01d79 100644
--- a/hw/mcu/nxp/lpc43xx/hal/dcd_lpc43xx.c
+++ b/hw/mcu/nxp/lpc43xx/hal/dcd_lpc43xx.c
@@ -252,7 +252,7 @@ bool hal_dcd_init(uint8_t coreid)
lpc_usb->ENDPOINTLISTADDR = (uint32_t) p_dcd->qhd; // Endpoint List Address has to be 2K alignment
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;
+ lpc_usb->USBINTR_D = INT_MASK_USB | INT_MASK_ERROR | INT_MASK_PORT_CHANGE | INT_MASK_RESET | INT_MASK_SUSPEND /*| INT_MASK_SOF */;
lpc_usb->USBCMD_D &= ~0x00FF0000; // Interrupt Threshold Interval = 0
lpc_usb->USBCMD_D |= BIT_(0); // connect
@@ -593,7 +593,11 @@ void hal_dcd_isr(uint8_t coreid)
}
}
- if (int_status & INT_MASK_SOF) {}
+ if (int_status & INT_MASK_SOF)
+ {
+// hal_dcd_bus_event(coreid, USBD_BUS_EVENT_SOF);
+ }
+
if (int_status & INT_MASK_NAK) {}
if (int_status & INT_MASK_ERROR) ASSERT(false, VOID_RETURN);
}