X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/626f7414aee3ecd51ab35d093314919528f67b12..3a2bb63f0bb8de2aafb346b53b945c59b3f87a41:/lincan/src/c_can_irq.c diff --git a/lincan/src/c_can_irq.c b/lincan/src/c_can_irq.c index bf98d75..d114336 100644 --- a/lincan/src/c_can_irq.c +++ b/lincan/src/c_can_irq.c @@ -6,7 +6,7 @@ * Rewritten for new CAN queues by Pavel Pisa - OCERA team member * email:pisa@cmp.felk.cvut.cz * This software is released under the GPL-License. - * Version lincan-0.2 9 Jul 2003 + * Version lincan-0.3 17 Jun 2004 */ #include "../include/can.h" @@ -52,6 +52,9 @@ inline void c_can_irq_write_handler( struct chip_t *pchip, int idxobj) if(pmsgobj->tx_slot){ /* Do local transmitted message distribution if enabled */ if (processlocal){ + /* fill CAN message timestamp */ + can_filltimestamp(&pmsgobj->tx_slot->msg.timestamp); + pmsgobj->tx_slot->msg.flags |= MSG_LOCAL; canque_filter_msg2edges(pmsgobj->qends, &pmsgobj->tx_slot->msg); } @@ -147,6 +150,9 @@ inline void c_can_irq_read_handler( struct chip_t *pchip, for ( i=0; i < pmsgobj->rx_msg.length; i++ ) DEBUGMSG(" data[%d] = 0x%.2x\n", i, pmsgobj->rx_msg.data[i]); + /* fill CAN message timestamp */ + can_filltimestamp(&pmsgobj->rx_msg.timestamp); + canque_filter_msg2edges(pmsgobj->qends, &pmsgobj->rx_msg); #ifdef CAN_WITH_STATISTICS