From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-gx0-f14.google.com (mail-gx0-f14.google.com [209.85.217.14]) by ozlabs.org (Postfix) with ESMTP id 4199BDDDED for ; Wed, 22 Oct 2008 01:40:56 +1100 (EST) Received: by gxk7 with SMTP id 7so7951475gxk.9 for ; Tue, 21 Oct 2008 07:40:54 -0700 (PDT) Message-ID: Date: Tue, 21 Oct 2008 15:35:44 +0100 From: "Bruno Monteiro" To: linuxppc-embedded@ozlabs.org Subject: Compile program using XGpio MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10192_1171376.1224599744224" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_10192_1171376.1224599744224 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_10192_1171376.1224599744224 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_10192_1171376.1224599744224--