diff options
author | Angus Gratton <angus@redyak.com.au> | 2025-01-08 12:07:41 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-01-17 12:13:17 +1100 |
commit | e8d3df51dc036337803fbe047fff77266b3b69f4 (patch) | |
tree | a290b1cb5b9092f16d02eccee479d9957b8e2c1c /docs/esp32/tutorial/peripheral_access.rst | |
parent | 1d8943ac7b57b89efa5400d966957e6613a7604d (diff) | |
download | micropython-e8d3df51dc036337803fbe047fff77266b3b69f4.tar.gz micropython-e8d3df51dc036337803fbe047fff77266b3b69f4.zip |
stm32/pyb_can: Make pyb.CAN baud calculation a little more forgiving.
Not every baudrate or sample point combination has an exact match,
but getting within 1% on sample point and .1% on baud rate should
always be good enough.
Because the search goes from shorter bit periods (lowest brp) and
increases, the first match which meets this criteria should still mostly be
the best available.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/esp32/tutorial/peripheral_access.rst')
0 files changed, 0 insertions, 0 deletions