linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Pantelis Antoniou <panto@intracom.gr>
To: m madhuker <mythri_madhuker@yahoo.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Regarding parallel port in MPC8245...
Date: Mon, 02 Aug 2004 10:34:44 +0300	[thread overview]
Message-ID: <410DEE94.8030601@intracom.gr> (raw)
In-Reply-To: <20040802072537.86860.qmail@web13604.mail.yahoo.com>


m madhuker wrote:
> Hello all...
>          Im working on MPC8245 board..
> with timesys GPL-linux..
>
> I want to transfer data(just glow a light) in serial
> port or parallel port...
>
> so i worte a simple program to glow a light in
> parallel port as follows:
>
> ---------
> #include "asm/io.h"
> #include<unistd.h>
> #include<stdlib.h>
> #include<stdio.h>
> main()
> {
>         outb(0x378,0xff);
>         printf("Data sent out \n");
> }
> ----------------------------------------
>
> but when i compiled,it showing errors as follows:
>
> [root@mail root]# powerpc-linux-gcc out.c
> /tmp/ccED5Jlo.o: In function `main':
> /tmp/ccED5Jlo.o(.text+0x20): undefined reference to
> `outb'
> /tmp/ccED5Jlo.o(.text+0x20): relocation truncated to
> fit: R_PPC_REL24 outb
> collect2: ld returned 1 exit status
> [root@mail root]#
> ----------------------------------------
>
> the oub function  defination is in  "asm/io.h"..which
> i included but also it is showing error undefined
> reference...
>
> in x86 it was executed perfectly...
>
> Please can anybody help out from this problem....
>
>                                       Regards
>                                       Madhukar
>
>
>
>

http://www.amazon.com/exec/obidos/tg/detail/-/0764551302/002-9292903-4601667?v=glance


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2004-08-02  7:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-02  7:25 Regarding parallel port in MPC8245 m madhuker
2004-08-02  7:34 ` Pantelis Antoniou [this message]
2004-08-02  8:53   ` Wolfgang Denk
2004-08-02  8:13 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410DEE94.8030601@intracom.gr \
    --to=panto@intracom.gr \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=mythri_madhuker@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).