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: Mon, 23 Apr 2001 09:36:00 -0000 [thread overview]
Message-ID: <3AE45A13.E2C4C511@redhat.com> (raw)
In-Reply-To: <DDD04F4480FED411AB5D00508BFD7A4417831D@CTSINTDLSXUA>
"Natarajan, Mekala (CTS)" wrote:
>
> Thanks Mr.Jifl.
>
> In i386 pc target i used hal_diag_init() and hal_diag_read() to get input
> from target keyboard.
> MBX starter kit also has a keyboard interface support. If i try to use the
> hal_diag_read() system call it reports unreferenced symbol error. What is
> the option which i need to enable to get input from target keyboard.
Do a
#include <cyg/hal/hal_diag.h>
and then use the macro
HAL_DIAG_READ_CHAR(x)
where x is a char to read into, e.g.
char foo;
HAL_DIAG_READ_CHAR( foo );
I believe this should work.
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
next prev parent reply other threads:[~2001-04-23 9:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-23 6:37 Natarajan, Mekala (CTS)
2001-04-23 9:36 ` Jonathan Larmour [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-20 5:13 Natarajan, Mekala (CTS)
2001-04-20 7:11 ` 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=3AE45A13.E2C4C511@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).