* [ECOS] Re: A problem in scnaf() function: Help needed
[not found] <000e01c1ca5c$b83668a0$0264a8c0@server>
@ 2002-04-03 18:34 ` Jonathan Larmour
0 siblings, 0 replies; only message in thread
From: Jonathan Larmour @ 2002-04-03 18:34 UTC (permalink / raw)
To: Ram Khatkhedkar (enSys); +Cc: ecos-discuss
> "Ram Khatkhedkar (enSys)" wrote:
>
> In function
> hal_if_diag_read_char()
> {
> :
> :
> if(__chan)
> {
> CYGACC_COMM_IF_GETC(* __chan);
> }
> :
> :
> }
> where __chan is a pointer of type hal_virtual_comm_table_t (it is an aray
> of unsigned integers)
> The if(__chan) condition gets satisfies and the program gets hanged.
> Can you suggest me why is it happeening like this?? What shall I do to
> overcome this difficulty?? How shall I run the scanf() in my
> application??
Assuming you are using the default configuration, this will call into
RedBoot to get the character. But be warned - if you are debugging via GDB
then it can't work as there is no way to get character input from GDB to
the target - GDB doesn't support it.
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-04 2:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <000e01c1ca5c$b83668a0$0264a8c0@server>
2002-04-03 18:34 ` [ECOS] Re: A problem in scnaf() function: Help needed Jonathan Larmour
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).