Committed Fanda Vacek work on major upgrade of CANopen framework CLT_COMM_CAN-post_update-040903
authorppisa <ppisa>
Fri, 3 Sep 2004 22:29:05 +0000 (22:29 +0000)
committerppisa <ppisa>
Fri, 3 Sep 2004 22:29:05 +0000 (22:29 +0000)
CanMonitor updated and communication protocol changed
to binary version. Automatic serialization and deserialization
code generation added.
CAN monitor daemon updated to support new binary protocol as well.
Enhanced CANopen device to connect with hardware through
hardware supporting shared libraries. Mapping is done
according to HDS (Handle Description) files.

lincan/src/can_devrtl.c

index c570f1b..301c52c 100644 (file)
@@ -134,9 +134,12 @@ void * can_chip_worker_thread(void *arg)
                  but it seems to not work without that */
                if(chip->chip_irq>=0) {
                        if ((chip->flags & CHIP_IRQ_VME) == 0) can_enable_irq(chip->chip_irq);
+                   #ifdef CAN_ENABLE_VME_SUPPORT
                        else tundra_rtl_enable_pci_irq(); 
                        /* FIXME: Bad practice. Doesn't work with more
                         * than one card. */
+                   #endif /*CAN_ENABLE_VME_SUPPORT*/
+
                }
 
                RTL_MARK_SUSPENDED(pthread_self());