]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/can_devrtl.c
Committed Fanda Vacek work on major upgrade of CANopen framework
[lincan.git] / lincan / src / can_devrtl.c
index c570f1bdb7a6fc4bc12a4313b2e0630c7da97ca5..301c52c757d45446eaa0e80bd8cd285373cb7c8a 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);
                  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. */
                        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());
                }
 
                RTL_MARK_SUSPENDED(pthread_self());