2010-02-09 10:04:04     simple gpio driver

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-09 10:04:04     simple gpio driver

Filip Vanalme (BELGIUM)

Message: 85837   

 

Release 2009R1

 

I'm using the simple gpio driver to toggle some leds on my board. I assume everything in my application works well (I don't get any problem indications), however the leds are never turned on.

I open the driver with : fd = open("/dev/gpio32", O_RDWR)

I write to the driver with : write (fd, '0', 1) or write (fd, '1', 1)

 

Do I have to enable something (in kernel configuration) before I can drive the outputs ? ("Simple GPIO char interface" is enabled in the kernel configuration).

TranslateQuoteReplyEditDelete

 

 

2010-02-09 10:22:36     Re: simple gpio driver

Filip Vanalme (BELGIUM)

Message: 85839   

 

OK, problem solved. Not a problem of the gpio driver...

TranslateQuoteReplyEditDelete

 

 

2010-02-09 11:03:48     Re: simple gpio driver

Robin Getz (UNITED STATES)

Message: 85845   

 

Filip:

 

If you can let us know what "troubleshooting" tips we can add to the docs - it would be great.

 

Thanks

 

-Robin

Attachments

    Outcomes