]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
Corrected typo in legacy PCA82C200 (SJA1000 std) chip driver.
authorppisa <ppisa>
Tue, 30 Oct 2007 11:40:13 +0000 (11:40 +0000)
committerppisa <ppisa>
Tue, 30 Oct 2007 11:40:13 +0000 (11:40 +0000)
Thanks to Terence Soh for noticing the problem.

Important notice, if the board is equipped by real SJA1000
CAN controller chip, then PeliCAN mode is much much better
choice and  sja1000p_register() function should be used
instead of bare standard sja1000_register() chip support.

lincan/src/sja1000.c

index 71c7095adad847292cfa9f37cd14865eaa20061e..de3ab20be1636df63d94810d6b2267a3f848fba5 100644 (file)
@@ -515,7 +515,7 @@ int sja1000_register(struct chipspecops_t *chipspecops)
        chipspecops->start_chip = sja1000_start_chip;
        chipspecops->stop_chip = sja1000_stop_chip;
        chipspecops->irq_handler = sja1000_irq_handler;
-       chipspecops->irq_handler = NULL;
+       chipspecops->irq_accept = NULL;
        return 0;
 }