mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 19:57:12 +08:00
canbootloader:Add 48Mhz CAN Clock Settings
This commit is contained in:
committed by
Daniel Agar
parent
177109a1af
commit
2deef30d12
@@ -70,7 +70,12 @@
|
|||||||
#define FILTER_ID 1
|
#define FILTER_ID 1
|
||||||
#define FILTER_MASK 2
|
#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 % */
|
/* Sample 88.9 % */
|
||||||
# define QUANTA 9
|
# define QUANTA 9
|
||||||
# define BS1_VALUE 6
|
# define BS1_VALUE 6
|
||||||
|
|||||||
Reference in New Issue
Block a user