This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Correction on serial driver hooks
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: "Cusson, Pascal" <pascal dot cusson at analog dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 17 Oct 2002 15:22:53 -0600
- Subject: Re: [ECOS] Correction on serial driver hooks
- References: <8FDC0F9BE1F91D44BE964AA54AAA67B61B0351@wilmexm3.ad.analog.com>
On Thu, 2002-10-17 at 15:05, Cusson, Pascal wrote:
> Here are my definition corrected on my serial driver hooks:
>
> SERIAL_FUNS(scc1_funs, scc1_putc, scc1_getc, scc1_set_config, scc1_start_xmit, scc1_stop_xmit);
>
> SERIAL_CHANNEL(serial_channel0, scc1_funs, scc1_info1,
> CYGNUM_SERIAL_BAUD_57600,
> CYG_SERIAL_STOP_DEFAULT,
> CYG_SERIAL_PARITY_DEFAULT,
> CYG_SERIAL_WORD_LENGTH_DEFAULT,
> CYG_SERIAL_FLAGS_DEFAULT);
>
> DEVTAB_ENTRY(serial_scc1,"/dev/ttyS0",0,&cyg_io_serial_devio,init, scc1_lookup,&serial_channel0);
>
> When calling cyg_io_lookup, nothing happens. It looks like teh driver does not get attached. Subsequently, my function scc1_putc does not get called either when using cyg_io_write.
>
> What do I need to put in the cyg__io_lookput to attach my functions ???
Did you remember to put your driver into libextras.a?
Is the driver initialization being called (this will happen
at boot time)? You can turn on CYGDBG_IO_INIT to get messages
about the initialization.
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss