LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Compile program using XGpio
@ 2008-10-21 14:35 Bruno Monteiro
  2008-10-21 20:08 ` John Linn
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Monteiro @ 2008-10-21 14:35 UTC (permalink / raw)
  To: linuxppc-embedded

[-- 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 --]

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

end of thread, other threads:[~2008-10-23 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 14:35 Compile program using XGpio Bruno Monteiro
2008-10-21 20:08 ` John Linn
2008-10-23 16:58   ` Bruno Monteiro
2008-10-23 17:46     ` Grant Likely
2008-10-23 17:58       ` John Linn

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