Skip to content

Commit

Permalink
Cleanup, improve FDCAN bus timing/sampling accuracy
Browse files Browse the repository at this point in the history
General cleanup
FDCAN bit sampling point moved to recommended 87.5%
  • Loading branch information
rondlh committed Dec 23, 2024
1 parent 8d49354 commit d7e679d
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 122 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32/CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle) { // Called by HAL_CAN_Init
Error_Handler();

// CAN1 clock enable
if (__HAL_RCC_CAN1_IS_CLK_DISABLED()); // Enable CAN1 clock
if (__HAL_RCC_CAN1_IS_CLK_DISABLED())
__HAL_RCC_CAN1_CLK_ENABLE(); // Enable CAN1 clock

if (__HAL_RCC_GPIOB_IS_CLK_DISABLED()) // Should be enabled by Marlin already
Expand Down
Loading

0 comments on commit d7e679d

Please sign in to comment.