This is the mail archive of the ecos-discuss@sourceware.org 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]

Problem in Serial Driver


Hi,
Currently I am trying to write a serial driver for a new platform on Mips.
This driver is working fine in Polled Mode but not working in Interrupt mode.


Printf and scanf are not working but diag_printf is working fine.
I am getting TX interrupt continously. Even when I am not using any printf or scanf at that time also I am getting TX interrupt.
I think, I am doing some silly mistake. I have noticed that TX buffer is always full.


I have done the following things :

     1. Enable CYGPKG_IO_SERIAL_DEVICES
     2.  CYGDAT_IO_SERIAL_TTY_CONSOLE  is "/dev/ser0"

  DEVTAB_ENTRY(   test,
                                      "/dev/ser0",
                                      0,
                                      0,
                                      test_serial_tx_init,
                                      test_serial_tx_lookup,
                                      &test_serial_channel
          );

Please do some help.

Thanks in advance.

Regards,
Tathagata



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


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