lpcware

Enabling both host ports?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Aug 15, 2016 by Jan Vanek
Content originally posted in LPCWare by jdupre on Wed Nov 27 17:34:39 MST 2013
I've got the LPCOpen Mass Storage Demo working ion the EA LPC1788 dev board.
The Demo code appears to be hard-coded for using port 1 (i.e. the pins on p0.20 and p0.30)

I'd like to switch it to use port 2 (i.e. on p0.31 and the dedicated USB_D-2 pin).
In the end, I'd like both ports working at the same time, but I think I should start by making port 2 work.

I've changed the hardware initialization to configure the USB2 pins and set stctrl, but it appears there is a lot more to it than that.

Can someone give me a hint?  How do you differentiate io & interrupts on the two physical IO ports?

Outcomes