aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/can.c
diff options
context:
space:
mode:
authorBIGTREETECH <38851044+bigtreetech@users.noreply.github.com>2022-06-01 22:43:45 +0800
committerGitHub <noreply@github.com>2022-06-01 10:43:45 -0400
commit1ff72612033de0f4b857d960358c88eaa1046e4b (patch)
tree35c0a6a6a7a30873701c3b498d50ee7eeac557e5 /src/stm32/can.c
parentaf38d708cb3fad993422b8cf6bf4880acda568a3 (diff)
downloadkutter-1ff72612033de0f4b857d960358c88eaa1046e4b.tar.gz
kutter-1ff72612033de0f4b857d960358c88eaa1046e4b.tar.xz
kutter-1ff72612033de0f4b857d960358c88eaa1046e4b.zip
stm32: stm32g0b1 fdcan support (#5488)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
Diffstat (limited to 'src/stm32/can.c')
-rw-r--r--src/stm32/can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/can.c b/src/stm32/can.c
index 613c1f27..ff88edb9 100644
--- a/src/stm32/can.c
+++ b/src/stm32/can.c
@@ -252,7 +252,7 @@ compute_btr(uint32_t pclock, uint32_t bitrate)
uint32_t bit_clocks = pclock / bitrate; // clock ticks per bit
- uint32_t sjw = 2;
+ uint32_t sjw = 2;
uint32_t qs;
// Find number of time quantas that gives us the exact wanted bit time
for (qs = 18; qs > 9; qs--) {