Compile program using XGpio

Bruno Monteiro bms.monteiro at gmail.com
Wed Oct 22 01:35:44 EST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20081021/7d6a4b7a/attachment.htm>


More information about the Linuxppc-embedded mailing list