Thread (5 messages) flat view 5 messages, 3 authors, 2008-10-23

Compile program using XGpio

From: Bruno Monteiro <hidden>
Date: 2008-10-21 14:40:56

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help