diff options
author | Damien George <damien.p.george@gmail.com> | 2018-08-10 16:39:47 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-08-10 16:39:47 +1000 |
commit | 86e0b2553288bf40a22e1e91d161c075295dd4a7 (patch) | |
tree | c4ed5fca5ca31b9d9d80202ed0f33fbeb1eb5ad9 /py/compile.c | |
parent | ca0d78cebb20ed67f78491a68b02272aba2ecd13 (diff) |
stm32/spi: Round up prescaler calc to never exceed requested baudrate.
Requesting a baudrate of X should never configure the peripheral to have a
baudrate greater than X because connected hardware may not be able to
handle higher speeds. This patch makes sure to round the prescaler up so
that the actual baudrate is rounded down.
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions