On Thu, 9 Feb 2012, Eric Bénard wrote: > Le Thu, 9 Feb 2012 13:37:34 -0500 (EST), > "Robert P. J. Day" a écrit : > > > On Thu, 9 Feb 2012, Eric Bénard wrote: > > > > > Le Thu, 9 Feb 2012 11:34:55 -0500 (EST), > > > "Robert P. J. Day" a écrit : > > > > so what exactly does one do to read those values? i tried: > > > > > > > > barebox@Texas Instrument's Beagle:/ gpio_direction_input 171 > > > > barebox@Texas Instrument's Beagle:/ gpio_get_value 171 > > > > > > > > but what do i check? the shell variable $? i'm not sure what i > > > > should do next. > > > > > > > you can check the mux of the pins to be sure they are in GPIO mode. > > > > how do i do that from the barebox prompt? i can see the > > gpio-related commands for setting direction and getting/setting > > values, but how does one check if those pins are properly in gpio > > mode? > > > see the corresponding registers with md never mind, i think i just figured out i have a lot more work ahead of me. i popped into the panda directory, and noticed that honking big mux.c file, which i'm guessing i'll have for the beagle as well, and that's a bit over my head at the moment. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================