2008-08-25 17:23:08     compiler cant find asm/gpio.h?

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

2008-08-25 17:23:08     compiler cant find asm/gpio.h?

John Doe (UNITED STATES)

Message: 61040   

 

not sure how to fix this. when I try to compile a simple file i get the error 22: error: asm/gpio.h: No such file or directory

 

the line for the include is:

 

#include <asm/gpio.h>

 

may i have missed exporting something to my environment?

 

QuoteReplyEditDelete

 

 

2008-08-25 17:43:52     Re: compiler cant find asm/gpio.h?

Mike Frysinger (UNITED STATES)

Message: 61041   

 

asm/gpio.h is only for kernel space

QuoteReplyEditDelete

 

 

2008-08-26 03:03:41     Re: compiler cant find asm/gpio.h?

John Doe (UNITED STATES)

Message: 61056   

 

So then do I need to include any specific files within the driver source file? This is the first time I have attemped to write a driver in C so bare with me if I am in any kind of error.

QuoteReplyEditDelete

 

 

2008-08-26 09:34:41     Re: compiler cant find asm/gpio.h?

Mike Frysinger (UNITED STATES)

Message: 61099   

 

then you should review the module introduction:

http://docs.blackfin.uclinux.org/doku.php?id=a_simple_module_example

Attachments

    Outcomes