public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Perry Wang" <perrywang@nmnc.com>
To: <jskov@cygnus.co.uk>
Cc: <ecos-discuss@sourceware.cygnus.com>
Subject: RE: [ECOS] LIBC and STDIO
Date: Fri, 17 Dec 1999 11:04:00 -0000	[thread overview]
Message-ID: <NDBBKBNDILCIAEJMGDCGCEDNCBAA.perrywang@nmnc.com> (raw)
In-Reply-To: <otemcm0yo6.fsf@thinktwice.zoftcorp.dk>

Thanks for replying.  Sorry I forgot to mention that I'm using AEB-1 rev. C


I do have the serial package enabled.. some of the defines are here:

#define CYGPKG_IO_SERIAL_TTY

#define CYGPKG_IO_SERIAL_TTY_TTYDIAG
#undef  CYGPKG_IO_SERIAL_TTY_TTY0
#define CYGDAT_IO_SERIAL_TTY_TTY0_DEV "/dev/ser0"
#define CYGPKG_IO_SERIAL_TTY_TTY1
#define CYGDAT_IO_SERIAL_TTY_TTY1_DEV "/dev/ser1"
#undef  CYGPKG_IO_SERIAL_TTY_TTY2
#define CYGDAT_IO_SERIAL_TTY_TTY2_DEV "/dev/ser2"

#define  CYGPKG_IO_SERIAL_ARM_AEB
#define  CYGPKG_IO_SERIAL_ARM_AEB_SERIAL0
#define CYGDAT_IO_SERIAL_ARM_AEB_SERIAL0_NAME "/dev/ser0"
#define CYGNUM_IO_SERIAL_ARM_AEB_SERIAL0_BAUD 38400
#define CYGNUM_IO_SERIAL_ARM_AEB_SERIAL0_BUFSIZE 128
#define  CYGPKG_IO_SERIAL_ARM_AEB_SERIAL1
#define CYGDAT_IO_SERIAL_ARM_AEB_SERIAL1_NAME "/dev/ser1"
#define CYGNUM_IO_SERIAL_ARM_AEB_SERIAL1_BAUD 38400
#define CYGNUM_IO_SERIAL_ARM_AEB_SERIAL1_BUFSIZE 128

io write to /dev/tty1 or /dev/ser1 directly works fine.  However the libc
printf doesn't like it.  I guess I'm still missing something.  Changing
CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE back to "/dev/haldiag" will work, but it
prints out some garbage only GDB will understand.

thanks again



> -----Original Message-----
> From: jskov@cygnus.co.uk [ mailto:jskov@cygnus.co.uk ]
> Sent: Friday, December 17, 1999 12:17 AM
> To: Perry Wang
> Cc: ecos-discuss@sourceware.cygnus.com
> Subject: Re: [ECOS] LIBC and STDIO
>
>
> >>>>> "Perry" == Perry Wang <perrywang@nmnc.com> writes:
>
> Perry> CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE
>
> Perry> to "/dev/tty1" instead of "/dev/haldiag"
>
> Perry> My program hangs at the printf()
>
> Did you enable that serial driver? Make sure you include the IO_SERIAL
> package and enable the PID driver (see pkgconf/io_serial.h in your
> build tree).
>
> Jesper

  reply	other threads:[~1999-12-17 11:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-16 16:35 Perry Wang
1999-12-17  0:30 ` Jesper Skov
1999-12-17 11:04   ` Perry Wang [this message]
1999-12-17 12:23     ` Jonathan Larmour
1999-12-17 16:05       ` Perry Wang
1999-12-21 14:51     ` [ECOS] tty driver Perry Wang
1999-12-21 14:56       ` Perry Wang

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=NDBBKBNDILCIAEJMGDCGCEDNCBAA.perrywang@nmnc.com \
    --to=perrywang@nmnc.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jskov@cygnus.co.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).