summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-07 18:49:26 +0700
committerhathach <[email protected]>2018-12-07 18:49:26 +0700
commit2aa21a14e6f44256d5debe263e4b858ed3342dac (patch)
tree99b14eb0fcbd9309aa453e04475c11a6bb0eb308 /src/portable
parente6e367913664140729fa88605da7f1dc52439e16 (diff)
lpc17 ohci failed to execute control transfer !!
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/nxp/lpc17_40/hal_lpc17_40.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/portable/nxp/lpc17_40/hal_lpc17_40.c b/src/portable/nxp/lpc17_40/hal_lpc17_40.c
index 7509dac58..2acd19f6e 100644
--- a/src/portable/nxp/lpc17_40/hal_lpc17_40.c
+++ b/src/portable/nxp/lpc17_40/hal_lpc17_40.c
@@ -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