On 21/05/14 14:56, Timothée wrote:
> Hello guys,
> 
> I'm working on a BBB for my engineer school projet.
> I use it to control 6 motors with encoders.
> My goal is to stop motors when my robots legs take a round.
> For this I use a H bridge to control motors.
> On my BBB i use a gpio and configure it as an input and "rising" on edge.
> So to read the value I use "more /proc/interrupts" and my value is on
> the line of "gpiolib".
> My probleme is that I don't even know who to reset this value when i
> want to do an another test.
> The only way I've found is to restart the BBB.
> Do you have any other solutions ?
> Thank you in advance.
> 

If you're happy using C then libsoc[1] can do this for you in a simple C
program. If you wish to do it in another language looking at the gpio
code in libsoc will show you the basics of how to do it.

Cheers,
Jack.

[1] https://github.com/jackmitch/libsoc

-- 
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  Cambridgeshire, UK
  http://www.embed.me.uk
-- 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to