[Voyage-linux] LPC connector on Wrap.2c board
William M. Brack
(spam-protected)
Tue Feb 13 11:08:21 HKT 2007
Jake Vickers wrote:
> Hello everyone. I just joined the mailing list, and I'm looking for help
> on a specific problem.
> The Wrap.2c board has 1 serial, which is normally used for console
> output (as you know). But it has a LPC connector on board that I was
> under the impression could be configured to add another serial port to
> the board. Has anyone had any experience with this? I'm mainly looking
> to turn a couple pins hi/low to turn on some relays and I contacted the
> support people over at PCEngines, but his reply is over my head (it
> didn't make sense to me). Here's his reply:
<snip>
> Does that make sense to anyone? Ideally I'd like to have a second serial
> port on this board, but if I can just turn the above pins on/off in C
> code that would be fine as well.
> Thanks for taking the time to read this!
I have used the LPC for an interface which I built (I have previously
promised to put the details onto the Voyage Wiki, and will eventually do
that). Attached is the program which I use to "enable" the LPC for
simple I/O on the 6 available bits. There are lots of comments to show
what (I think) I am doing. Once the port is "enabled", you can access it
with straight C port-IO (e.g. 'inl' and 'outl' to the GPIO reg port at
0xf410).
Hope it might help.
Regards,
Bill
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bb4.c
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20070212/e371e0db/attachment.c>
More information about the Voyage-linux
mailing list