From: "Bruno Monteiro" <bms.monteiro@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: Compile program using XGpio
Date: Tue, 21 Oct 2008 15:35:44 +0100 [thread overview]
Message-ID: <d43ae5a00810210735k2e2068aew3e67e36bd079805@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 508 bytes --]
Hi all,
I'm working with a Virtex2p. I have a running system using:
- EDK 9.1
- Crosstool-ng (svn)
- linux-2.6-xlnx
- BusyBox 1.12.1
Now, i'm trying to build a small program that turn off leds. I guess it
should be something like this:
void main (void){
XGpio led;
XGpio_Initialize (&led, XPAR_LEDS_4BIT_DEVICE_ID);
XGpio_SetDataDirection(&led,1,0);
XGpio_DiscreteWrite(&led,1,0xf);
}
I want to know how to compile it (without EDK). Any suggestion?
Thanks,
Bruno Monteiro
[-- Attachment #2: Type: text/html, Size: 750 bytes --]
next reply other threads:[~2008-10-21 14:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 14:35 Bruno Monteiro [this message]
2008-10-21 20:08 ` Compile program using XGpio John Linn
2008-10-23 16:58 ` Bruno Monteiro
2008-10-23 17:46 ` Grant Likely
2008-10-23 17:58 ` John Linn
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=d43ae5a00810210735k2e2068aew3e67e36bd079805@mail.gmail.com \
--to=bms.monteiro@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
/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