Hi all,

I'm working with a Virtex2p. I have a running system using:
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