canbootloader:Add 48Mhz CAN Clock Settings

This commit is contained in:
David Sidrane 2021-01-12 16:02:09 -08:00 committed by Daniel Agar
parent 177109a1af
commit 2deef30d12
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,12 @@
#define FILTER_ID 1
#define FILTER_MASK 2
#if STM32_PCLK1_FREQUENCY == 45000000 || STM32_PCLK1_FREQUENCY == 36000000
#if STM32_PCLK1_FREQUENCY == 48000000
/* Sample 85.7 % */
# define QUANTA 16
# define BS1_VALUE 12
# define BS2_VALUE 1
#elif STM32_PCLK1_FREQUENCY == 45000000 || STM32_PCLK1_FREQUENCY == 36000000
/* Sample 88.9 % */
# define QUANTA 9
# define BS1_VALUE 6