drivers: can: sja1000: use generic can_set_timing API
This is a preparation to use the custom implementation in ESP32 TWAI frontend for newer ESP32 series chips like the ESP32-C3, which have timing registers incompatible with the SJA1000. Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
23562448dc
commit
f936d68916
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ int can_sja1000_init(const struct device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configure timing */
|
/* Configure timing */
|
||||||
err = can_sja1000_set_timing(dev, &timing);
|
err = can_set_timing(dev, &timing);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
LOG_ERR("timing parameters cannot be met (err %d)", err);
|
LOG_ERR("timing parameters cannot be met (err %d)", err);
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue