Thanks Dave
So basically I just need to add/include the "user-gpio.h" and "user-gpio.c" files and enter the unsigned gpio numebrs as 146 and 147? instead of opeing and reading the system files)
What exactly is the const char * label?

On 7 December 2011 22:17, Dave Hylands <> wrote:
Hi Nick,

On Wed, Dec 7, 2011 at 8:53 AM, Nick Starzicki <> 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

Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
gumstix-users mailing list