stm32: stm32g0b1 fdcan support (#5488)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH
2022-06-01 22:43:45 +08:00
committed by GitHub
parent af38d708cb
commit 1ff7261203
5 changed files with 347 additions and 2 deletions

View File

@@ -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--) {