Mercurial > ecos
diff packages/devs/can/loop/current/tests/can_txevent.c @ 2424:4c366bd69cd5
* tests/can_overrun1.c (can0_thread): Fix the length of the data
in the message. Add a delay to allow the CAN device to process
the packets.
* test/can_txcevent.c: (can0_thread): Add a delay to allow the CAN device
to process the packet.s
* src/loop_can.c (FIFO_SIZE): Changed to one more than the TX
queue size. If it is less, the loopback tests don't pass because
packets don't get transmitted.
| author | asl |
|---|---|
| date | Tue, 28 Aug 2007 15:56:03 +0000 |
| parents | 1ca46bebd705 |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/devs/can/loop/current/tests/can_txevent.c +++ b/packages/devs/can/loop/current/tests/can_txevent.c @@ -164,6 +164,11 @@ void can0_thread(cyg_addrword_t data) } // + // Give the loop back driver time to process all those messages. + // + cyg_thread_delay(10); + + // // now we read the buffer info - we expect a completely filled recieve queue // len = sizeof(buf_info);
