Content originally posted in LPCWare by MikeSimmonds on Tue Dec 01 23:36:11 MST 2015
Quote: rocketdawg
The LPC1788 is not capable of doing USB Host and USB Device at the same time because it has only one USB peripheral.
this peripheral can be programmed for Host or device, not Host and device.
you may want to look at LPC1800 or LPC4300 series which have two USB peripherals, so one can be device AND the other can be Host.
This is simply not true.
(There may be a restriction on the 144 pin part, we have the QFP 208.)
The 1778/1788 does have two USB channels (and pins)
In the UM (Rev 3.1 September 2014) look at the first entry in table 315, chapter 14.
I know this the OTG chapter, but the PORT_FUNC settings are valid for device and/or host.
Cheers, Mike.
As for your question: rename one of them.
Use the 'refactor' feature of the IDE editor perhaps.
I do not edit via the IDE so I don't know exactly how this works, but I saw it in one of the (long) training videos on the NXP site.
(When it was still Code Red!)