test of CAN callback stuff

Andrew Lunn andrew@lunn.ch
Fri Aug 24 13:51:00 GMT 2007


On Fri, Aug 24, 2007 at 02:01:05PM +0700, Alexey Shusharin wrote:
> Hi
> 
> First patch is a test of callback stuff for CAN loop driver.

Thanks for the test case. It has been committed.

I also added an ecosconfig import file which can be used with the
synth target. It includes the io can support and the loopback
device. It also sets the options which i think need setting. With this
setup i can run all the tests. However two of the tests fail.

can_overrun1 fails with:

FAIL:<Number of events in /dev/can0 RX queue differs from queue size> Line: 171, File: /home/lunn/eCos/anoncvs-clean/packages/devs/can/loop/current/tests/can_overrun1.c

and can_txevent fails with:

RX bufsize: 32    events in RX buffer: 0
FAIL:<Receive queue of /dev/can0 not completely filled.> Line: 181, File: /home/lunn/eCos/anoncvs-clean/packages/devs/can/loop/current/tests/can_txevent.c
EXIT:<done>

Could somebody with a better understanding of the CAN code take a look
at this. Is my configuration wrong? Is the test wrong? Is the loop back
driver broken?

       Thanks
          Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: canloop.diff
Type: text/x-diff
Size: 12667 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20070824/8dead69a/attachment.bin>


More information about the Ecos-patches mailing list