enhance dcd lpc17xx. Able to pass enumeration

This commit is contained in:
hathach
2018-11-27 20:48:46 +07:00
parent 138b12b61b
commit 038851c362
7 changed files with 374 additions and 361 deletions

View File

@@ -37,9 +37,10 @@
/**************************************************************************/
#include "common/tusb_common.h"
#if CFG_TUSB_MCU == OPT_MCU_LPC175X_6X
#include "hal_usb.h"
#if CFG_TUSB_MCU == OPT_MCU_LPC175X_6X
#include "LPC17xx.h"
void tusb_hal_int_enable(uint8_t rhport)
{
@@ -102,6 +103,8 @@ bool tusb_hal_init(void)
void USB_IRQHandler(void)
{
extern void hal_dcd_isr(uint8_t rhport);
#if MODE_HOST_SUPPORTED
hal_hcd_isr(0);
#endif