USBH - USB_CM3

Hi,
i want to use USB host controller on LPC1778 with USB_CM3.lib and usbh_ohci_lpc177x_8x driver. The board is custom and there are no ISP1301. In driver - usbh_ohci_lpc177x_8x i saw functions for working with I2C(ISP1301). When i calling "usbh_init(0)" and "usbh_engine(0)" I2C functions are too calling. Is it possible to modify driver to work without ISP1301 as host only?

Thank's in advance !

Parents
  • > I am using port 1

    You may apply usbh_ohci_lpc17xx.c without any change.

    In this file, usbh_ohci_hw_init() assigns port1 (U1) to host, port2 (U2) to device, as follows.

    usbh_ohci_lpc17xx.c
    
    BOOL usbh_ohci_hw_init (BOOL on) {
        ...
        LPC_USB->OTGStCtrl  |=  0x03;       /* Select port function               */
                                            // U1 = host, U2 = device
    

    Also, in usbh_ohci_hw_pins_config() in this source file, just the port1 is enabled.

    Tsuneo

Reply
  • > I am using port 1

    You may apply usbh_ohci_lpc17xx.c without any change.

    In this file, usbh_ohci_hw_init() assigns port1 (U1) to host, port2 (U2) to device, as follows.

    usbh_ohci_lpc17xx.c
    
    BOOL usbh_ohci_hw_init (BOOL on) {
        ...
        LPC_USB->OTGStCtrl  |=  0x03;       /* Select port function               */
                                            // U1 = host, U2 = device
    

    Also, in usbh_ohci_hw_pins_config() in this source file, just the port1 is enabled.

    Tsuneo

Children
More questions in this forum