From: Dave H. <dhy...@gm...> - 2006-02-22 01:57:15
|
On 2/21/06, Nicholas <che...@ho...> wrote: > The "set" status indicates a logic 1 on that GPIO (3.3V) and the "clear" > status indicates a logic 0. > > If anyone wants a nice bit of code to be able to read the data on the > GPIO's, I believe this may help: You'll also find some code over here: <http://websvn.gumstix.com/filedetails.php?repname=3DBuildroot&path=3D%2Fbr= anches%2Fprojects%2Frobostix%2Fgumstix%2FCommon%2FSerialLog.c&rev=3D0&sc=3D= 0> which configures the serial port pins pins appropriately (from within C). It takes care of loading the module, if required, and only changes the pin if they need to be changed. The ConfigGpioPin function takes care of configuring the pin appropriately, but doesn't consider setting the value. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |