drivers: can: split CAN classic and CAN-FD syscalls
Split CAN classic and CAN-FD syscalls into two: - can_set_timing() -> can_set_timing() + can_set_timing_data() - can_set_bitrate() -> can_set_bitrate() + can_set_bitrate_data() Fixes: #45303 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
bad1fa4f3f
commit
18890828b8
19 changed files with 189 additions and 90 deletions
|
@ -223,7 +223,7 @@ CO_ReturnError_t CO_CANmodule_init(CO_CANmodule_t *CANmodule,
|
|||
txArray[i].bufferFull = false;
|
||||
}
|
||||
|
||||
err = can_set_bitrate(CANmodule->dev, KHZ(CANbitRate), 0);
|
||||
err = can_set_bitrate(CANmodule->dev, KHZ(CANbitRate));
|
||||
if (err) {
|
||||
LOG_ERR("failed to configure CAN bitrate (err %d)", err);
|
||||
return CO_ERROR_ILLEGAL_ARGUMENT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue