[ECOS] Correction on serial driver hooks
Gary Thomas
gthomas@ecoscentric.com
Thu Oct 17 14:22:00 GMT 2002
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
More information about the Ecos-discuss
mailing list