public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* GPIO OF OMAP5912
@ 2006-08-29  6:43 w.b.b
  2006-08-29 14:08 ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
  0 siblings, 1 reply; 4+ messages in thread
From: w.b.b @ 2006-08-29  6:43 UTC (permalink / raw)
  To: Linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

hi:

 i want to do some work about OMAP5912'GPIO.but I am failed to do that.

 the following is a simple program:

test.c 

-----------------------------------------------------

#include <stdio.h>
#include <unistd.h>
#include <asm/io.h>

#define GPIO3_OUT 0xfffbbc40 /* lp1 */

int main()
{
  /* Get access to the ports */
  
  
  /* Set the data signals (D0-7) of the port to all low (0) */
  outb(0xffff, GPIO3_OUT);
  
  /* Sleep for a while (100 ms) */
  usleep(100000);
}
-----------------------------------------------------
arm-linux-gcc -g test.c -o test.out
----------------------------------------------------
I run the binary file on the omap:./test.out
-----------------------------------------------------
but i get the result:segmentation falt!
---------------------------------------------------
who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
   thanks!

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-31  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <B3FDBBC0428C8145A83F312B740CE67D075859@si-mail48.de.bosch.com>
2006-08-31  1:08 ` AW: GPIO OF OMAP5912 w.b.b
2006-08-29  6:43 w.b.b
2006-08-29 14:08 ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
2006-08-29 16:50   ` Hingkwan Huen
2006-08-30  2:15     ` w.b.b

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox