Home
last modified time | relevance | path

Searched refs:sp_err (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/can/timing/src/
Dmain.c166 int sp_err; in test_timing_values() local
176 sp_err = can_calc_timing_data(dev, &timing, test->bitrate, test->sp); in test_timing_values()
183 sp_err = can_calc_timing(dev, &timing, test->bitrate, test->sp); in test_timing_values()
187 zassert_equal(sp_err, -EINVAL, "err %d, expected -EINVAL", sp_err); in test_timing_values()
190 zassert_true(sp_err >= 0, "unknown error %d", sp_err); in test_timing_values()
191 zassert_true(sp_err <= SAMPLE_POINT_MARGIN, "sample point error %d too large", in test_timing_values()
192 sp_err); in test_timing_values()
209 printk("OK, sample point error %d.%d%%\n", sp_err / 10, sp_err % 10); in test_timing_values()
/Zephyr-Core-3.5.0/drivers/can/
Dcan_common.c172 int sp_err; in can_calc_timing_int() local
188 sp_err = update_sampling_pnt(ts, sp, &tmp_res, in can_calc_timing_int()
190 if (sp_err < 0) { in can_calc_timing_int()
195 if (sp_err < sp_err_min) { in can_calc_timing_int()
196 sp_err_min = sp_err; in can_calc_timing_int()
201 if (sp_err == 0) { in can_calc_timing_int()