lpc17 ohci failed to execute control transfer !!

This commit is contained in:
hathach
2018-12-07 18:49:26 +07:00
parent e6e3679136
commit 2aa21a14e6
14 changed files with 12249 additions and 24 deletions

View File

@@ -42,10 +42,11 @@
#include "chip.h"
extern void hal_hcd_isr(uint8_t hostid);
extern void hal_dcd_isr(uint8_t rhport);
void USB_IRQHandler(void)
{
extern void hal_dcd_isr(uint8_t rhport);
#if MODE_HOST_SUPPORTED
hal_hcd_isr(0);
#endif
@@ -55,4 +56,18 @@ void USB_IRQHandler(void)
#endif
}
//FIXME move later
void hcd_int_enable(uint8_t rhport)
{
(void) rhport;
NVIC_EnableIRQ(USB_IRQn);
}
void hcd_int_disable(uint8_t rhport)
{
(void) rhport;
NVIC_DisableIRQ(USB_IRQn);
}
#endif