]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/i82527.c
Added CAN chip specific irq_accept routine for fast interrupt acknowledge.
[lincan.git] / lincan / src / i82527.c
index 00dd885b652dca00b028385f32c48c54f4ae232d..7834c1bc8b35ad7cb40dcf52ee8138b7b7987064 100644 (file)
@@ -131,7 +131,8 @@ int i82527_baud_rate(struct canchip_t *chip, int rate, int clock, int sjw,
        if (i82527_enable_configuration(chip))
                return -ENODEV;
 
-       clock /=2;
+       if(chip->int_cpu_reg & iCPU_DSC)
+               clock /=2;
 
        /* tseg even = round down, odd = round up */
        for (tseg=(0+0+2)*2; tseg<=(MAX_TSEG2+MAX_TSEG1+2)*2+1; tseg++) {
@@ -754,6 +755,7 @@ int i82527_register(struct chipspecops_t *chipspecops)
        chipspecops->start_chip = i82527_start_chip;
        chipspecops->stop_chip = i82527_stop_chip;
        chipspecops->irq_handler = i82527_irq_handler;
+       chipspecops->irq_accept = NULL;
        return 0;
 }