lpc17 ohci failed to execute control transfer !!
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user