commit | 8b6c1bd4b7a0ae4e1d1b3819d5db728120218c6b | [log] [tgz] |
---|---|---|
author | Alexander Wachter <alexander@wachter.cloud> | Mon Apr 27 18:58:05 2020 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Dec 17 11:07:53 2020 +0100 |
tree | 69623bf3c9749e6b82094accd2fdc2094c9c9b34 | |
parent | caa35d1a3a02325db6bc3785a33ddb94a5340b36 [diff] |
drivers: can: Rework can_configure API The previous API can't change the sampling-point and only allowed bitrates that fit the time segments. The new API allows for shifting the sampling-point and adjusts the number of time quantum in a bit to all more possible bitrates. The functions to calculate the timings are moved to the can_common file. They can be used for all drivers. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>