public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: "Natarajan, Mekala (CTS)" <NMekala@chn.cognizant.com>
Cc: "'ecos-discuss@sources.redhat.com'" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] Reg::input from keyboard
Date: Fri, 20 Apr 2001 07:11:00 -0000	[thread overview]
Message-ID: <3AE04385.CC73F249@redhat.com> (raw)
In-Reply-To: <DDD04F4480FED411AB5D00508BFD7A44178316@CTSINTDLSXUA>

"Natarajan, Mekala (CTS)" wrote:
> 
> Hi,
>         i am using MBX starter kit with MPC860 50MHZ processor. This kit
> has two serial ports and keyboard interface too. I am using ecos latest cvs
> version.
> How do i use the serial port 2 for getting input or for diagnostic output.

Diagnostic output can go there by using the options in the MBX platform HAL
such as "Diagnostic serial port"
(CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL) and switching it from 0 to 1.

Input is something best done with a proper interrupt-driven serial driver.
If they are included in your configuration the port 2 driver is enabled by
going into the I/O serial configuration and enabling "HArdware serial
device drivers" (CYGPKG_IO_SERIAL_DEVICES) and selecting it under there.

You could then do I/O using the more native cyg_io_read/cyg_io_write
commands described in the documentation, or by using /dev/tty2 (probably)
with stdio for tty-like access.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

  reply	other threads:[~2001-04-20  7:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-20  5:13 Natarajan, Mekala (CTS)
2001-04-20  7:11 ` Jonathan Larmour [this message]
2001-04-23  6:37 Natarajan, Mekala (CTS)
2001-04-23  9:36 ` Jonathan Larmour

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=3AE04385.CC73F249@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=NMekala@chn.cognizant.com \
    --cc=ecos-discuss@sources.redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).