This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem with scanf and printf
Tathagata Das wrote:
Hi ,
my scanf function is not working. Printf is working but after
cyg_thread_delay call it is not working too.
Here is my configuration :
CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE =
"/dev/ser0" CYGPKG_IO_SERIAL_TTY = 1
CYGPKG_IO_SERIAL_TTY_TTY0 = 0
In Serial driver DEVTAB_ENTRY is like this
DEVTAB_ENTRY( test_serial_iol,
"/dev/ser0",
0,
&cyg_io_serial_devio,
tes_serial_init,
test_serial_lookup, // Serial driver may need initializing
&test_serial_channel );
How can you expect any real help from a message like this?
You've not told us anything about your problems:
* What's the platform?
* Have you made modifications to eCos [your own drivers, HAL, etc]?
* How does 'scanf()' fail?
etc
Without details, your query is pretty useless :-(
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss