From: "w.b.b" <rememberme_2000@126.com>
To: Linux-omap-open-source@linux.omap.com
Subject: about gpio
Date: Mon, 28 Aug 2006 16:09:15 +0800 [thread overview]
Message-ID: <001d01c6ca79$412d9e00$4e0aa8c0@wbb> (raw)
In-Reply-To: 20060828071312.59941.qmail@web55812.mail.re3.yahoo.com
[-- Attachment #1: Type: text/plain, Size: 1098 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!> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
>
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2006-08-28 8:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 15:41 omap850 : MMC connected to GPIO ? Anand SVR
2006-08-28 7:13 ` I2C Remote I/O error Arnold
2006-08-28 8:09 ` w.b.b [this message]
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='001d01c6ca79$412d9e00$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