This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

duplicate define usb_irqhandle

Hello
when i want Using usb host and usb device in a program with lpc1788 , i add usbd_lpc17x_8x & usbh_ohci_177x_8x.c to my project but function usb_irqhandle define in both file
how solve this conflict?

Parents
  • Correct me if I'm wrong, but doesn't your chip only have one USB unit?

    "USB 2.0 full-speed controller that can be configured for either device, Host, or
    OTG operation with an on-chip PHY for device and Host functions and a dedicated
    DMA controller."

    So shouldn't your program then know what mode the USB unit is currently in, so you know which set of registers to look at for further decisions?

Reply
  • Correct me if I'm wrong, but doesn't your chip only have one USB unit?

    "USB 2.0 full-speed controller that can be configured for either device, Host, or
    OTG operation with an on-chip PHY for device and Host functions and a dedicated
    DMA controller."

    So shouldn't your program then know what mode the USB unit is currently in, so you know which set of registers to look at for further decisions?

Children