From: "w.b.b" <rememberme_2000@126.com>
To: Linux-omap-open-source@linux.omap.com
Subject: GPIO OF OMAP5912
Date: Tue, 29 Aug 2006 14:43:31 +0800 [thread overview]
Message-ID: <001e01c6cb36$7197e3d0$4e0aa8c0@wbb> (raw)
In-Reply-To: 1156768483.6544.269568352@webmail.messagingengine.com
[-- 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 --]
next prev parent reply other threads:[~2006-08-29 6:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 12:34 [PATCH] ARM: OMAP: Remove IVA IRQ bank Komal Shah
2006-08-29 6:43 ` w.b.b [this message]
2006-08-29 14:08 ` AW: GPIO OF OMAP5912 LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
2006-08-29 16:50 ` Hingkwan Huen
2006-08-30 2:15 ` w.b.b
2006-08-30 12:51 ` Loading program to OMAP5910 Raja Mallik
2006-08-30 17:01 ` Dirk Behme
2006-08-31 9:09 ` Raja Mallik
2006-09-06 19:48 ` Random Number Generation Abot Botbot
2006-09-06 20:20 ` lamikr
2006-08-29 14:29 ` [PATCH] ARM: OMAP: Remove IVA IRQ bank Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001e01c6cb36$7197e3d0$4e0aa8c0@wbb' \
--to=rememberme_2000@126.com \
--cc=Linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox