Hi all,
I want to use USB1.1 in usb_dev_bulk example instead of using USBOTG, I think the daunting modification is in USB0DeviceIntHandler() function.
void
USB0DeviceIntHandler(void)
{
unsigned int ulStatus = 0;
unsigned int epStatus = 0;
#if defined(am335x) || defined(c6a811x) || defined(am386x) || \
defined(c6741x)
//
// Get the controller interrupt status.
//
ulStatus = HWREG(USB_0_OTGBASE + USB_0_IRQ_STATUS_1);
//
// Get the EP interrupt status.
//
epStatus = HWREG(USB_0_OTGBASE + USB_0_IRQ_STATUS_0);
//
// Clear the controller interrupt status.
//
HWREG(USB_0_OTGBASE + USB_0_IRQ_STATUS_1) = ulStatus;
//
// Clear the EP interrupt status.
//
HWREG(USB_0_OTGBASE + USB_0_IRQ_STATUS_0) = epStatus;
#ifdef DMA_MODE
HWREG(USBSS_BASE + USBSS_IRQ_STATUS) =
HWREG(USBSS_BASE + USBSS_IRQ_STATUS);
#endif
//
//Call the Interrupt Handler.
//
USBDeviceIntHandlerInternal(0, ulStatus, &epStatus);
//
//End of Interrupts.
//
HWREG(USB_0_OTGBASE + USB_0_IRQ_EOI) = 0;
#ifdef DMA_MODE
HWREG(USBSS_BASE + USBSS_IRQ_EOI) = 0;
#endif
#else
//
// Get the controller interrupt status.
//
ulStatus = HWREG(USB_0_OTGBASE + USB_0_INTR_SRC);
epStatus = 0;
// Clear the Interrupts
HWREG(USB_0_OTGBASE + USB_0_INTR_SRC_CLEAR) = ulStatus;
#ifdef _TMS320C6X
IntEventClear(SYS_INT_USB0);
#else
IntSystemStatusClear(SYS_INT_USB0);
#endif
//
// Call the internal handler.
//
USBDeviceIntHandlerInternal(0, ulStatus, NULL);
// End of Interrupts
HWREG(USB_0_OTGBASE + USB_0_END_OF_INTR) = 0;
#endif
}
How to make the modification?? I tried to change in the macros in this function but I don't find the corresponding macros of USB1.1 !!
Urgent help please.
Regards.
Muhammad