stm32: Fix CAN for STM32G4
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
This commit is contained in:
committed by
KevinOConnor
parent
147492b253
commit
77619e912c
@@ -105,6 +105,9 @@ enable_clock_stm32g4(void)
|
||||
enable_pclock(CRS_BASE);
|
||||
CRS->CR |= CRS_CR_AUTOTRIMEN | CRS_CR_CEN;
|
||||
}
|
||||
|
||||
// Use PCLK for FDCAN
|
||||
RCC->CCIPR = 2 << RCC_CCIPR_FDCANSEL_Pos;
|
||||
}
|
||||
|
||||
// Main clock setup called at chip startup
|
||||
|
||||
Reference in New Issue
Block a user