Hi Nick,

On Wed, Dec 7, 2011 at 8:53 AM, Nick Starzicki <nick2501@gmail.com> wrote:
Hi Dave
Thanks for the response
1) I know there is the possibility of opening files, but I meant if there is a way of adding some include and having built in functions. Then I found some "GPIO Interfaces" txt file on the GPIO wiki. I saw there something to do with a header file and some c functions, or as it seems. Haven't gone over them yet, but will soon.

There aren't any canned functions for using the sysfs interface. You'd need to write those yourself.

I wrote a gpio driver/library which reflects the kernel's gpiolib API up into user-space. It's covered here:
2) I may not have asked my question correctly. Regarding the UART I was really meaning to ask if the serial lines (which I now see are pins 9 and 10 I think) are the UART pins, and if they have to do with the serial console port (usb port for communication with the comp and getting a command line). Because if the are the same lines then it won't be possible to use UART and command line at the same time?

Pins 9 & 10 on the 40-pin connector are for UART1. Pins 21 & 22 are for UART3.

I'm pretty sure that UART3 is the console.

Dave Hylands
Shuswap, BC, Canada