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:
Alexander Wachter 2020-12-10 15:13:26 +01:00 committed by Carles Cufí
commit f6ef508f6f
6 changed files with 157 additions and 1 deletions

View file

@ -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