This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Confusion on serial port usage
- From: "Mike Sweeney" <msweeney77 at gmail dot com>
- To: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 6 Aug 2007 14:13:45 -0400
- Subject: [ECOS] Confusion on serial port usage
I have an ARM based port that I am working with and am using the
Generic 16X5X serial drivers. I am a little confused on diag_printf,
HAL_DIAG_WRITE_CHAR, and how the serial device driver routines all
play together. My board only has 1 serial port so everything has to
share 1 output. My question is, if I include the serial port drivers
(Generic 16X5X), should diag_printf() be using HAL_DIAG_WRITE_CHAR()
or should it be transmitting characters via the serial port driver?
In my configuration diag_printf() is transmitting characters via
HAL_DIAG_WRITE_CHAR() through the virtual vector table. I have my
configuration set so that eCos claims the virtual vector table and
there are no monitor services used. Can someone help me straighten
this out?
Thanks.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss