tests: drivers: can: timing
Added tests for the timing algorithm. The tests calculate timings for some bitrates with sample-points and verify the results. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
parent
0e20633ee2
commit
f6ef508f6f
6 changed files with 157 additions and 1 deletions
|
@ -250,7 +250,7 @@ static const struct can_driver_api can_api_funcs = {
|
|||
.get_core_clock = can_loopback_get_core_clock,
|
||||
.timing_min = {
|
||||
.sjw = 0x1,
|
||||
.prop_seg = 0x00,
|
||||
.prop_seg = 0x01,
|
||||
.phase_seg1 = 0x01,
|
||||
.phase_seg2 = 0x01,
|
||||
.prescaler = 0x01
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue