mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 05:07:53 -06:00
stm32: Improved CAN support for STM32 (#2976)
Reworked the STM32F0 CAN bus implementation. It's more robust and higher performance. Added support for function remapping to different pins. API is emulating an STM32F0. Improved and ported CAN bus to STM32F0, F1 and F4. Signed-off-by: Pontus Borg <glpontus@gmail.com>
This commit is contained in:
parent
7cab732ae9
commit
7a8e9591e3
7 changed files with 493 additions and 279 deletions
|
@ -219,7 +219,7 @@ armcm_main(void)
|
|||
// Turn on hsi14 oscillator for ADC
|
||||
hsi14_setup();
|
||||
|
||||
// Support alternate USB/CAN pins on stm32f042
|
||||
// Support pin remapping USB/CAN pins on low pinout stm32f042
|
||||
#ifdef SYSCFG_CFGR1_PA11_PA12_RMP
|
||||
if (CONFIG_STM32F042_PIN_SWAP) {
|
||||
enable_pclock(SYSCFG_BASE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue