2010-01-12 02:40:25     Use gpio BF-537 stamp

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

2010-01-12 02:40:25     Use gpio BF-537 stamp

romain RODRIGUEZ (FRANCE)

Message: 84434   

 

Hello, my name is romain RODRIGUEZ, i'm a student living in FRANCE , so sorry for my bad english ... but I need your help.

 

I work on the blackfin card BF-537.

 

I installed toolchains and it worked   ( I use bfin-uclinux-gcc for compiling )

 

the simple Helloworld.c worked on the BF-537.

 

Now I need to use a LED on the card, with GPIO but when i compiling a program, he doesnt' find  mach/gpio.h for example.

 

i dont understand, when i'm compiling with bfin-uclinux-gcc , the file directory for the header are in opt/bfin.../runtime    etc...

 

and when i search in this directory, i dont find the header gpio.h

 

I need help, please

 

Thank you.

 

                                Romain RODRIGUEZ

TranslateQuoteReplyEditDelete

 

 

2010-01-12 13:32:41     Re: Use gpio BF-537 stamp

Mike Frysinger (UNITED STATES)

Message: 84477   

 

you dont access resources from userspace.  those functions are for kernel drivers only.

 

if you want to access gpios from userspace, use a userspace interface like:

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gpio-sysfs

QuoteReplyEditDelete

 

 

2010-01-13 12:15:38     Re: Use gpio BF-537 stamp

romain RODRIGUEZ (FRANCE)

Message: 84545   

 

Ok thank you for your attention,

 

but i dont understand very well,

 

the file gpio.h & gpio.c should be compiled for use after the functions?

 

At the end I need to execute a program who "set  in" automatically a Led.

TranslateQuoteReplyEditDelete

 

 

2010-01-13 13:52:02     Re: Use gpio BF-537 stamp

Mike Frysinger (UNITED STATES)

Message: 84548   

 

like the documentation says, those gpio files are merely *examples* of using the GPIO sysfs interface

Attachments

    Outcomes