This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Correction on serial driver hooks


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 ???

Please see my previous email for more details on the problem.

Thanks 

Pascal

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]