mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 10:10:33 +09:00
stm32: Add remap CAN to PD0/PD1 for stm32f103 (#5173)
Signed-off-by: Sergey Terentiev <sergey@terentiev.me>
This commit is contained in:
@@ -204,6 +204,9 @@ gpio_peripheral(uint32_t gpio, uint32_t mode, int pullup)
|
||||
if (gpio == GPIO('B', 8) || gpio == GPIO('B', 9))
|
||||
stm32f1_alternative_remap(AFIO_MAPR_CAN_REMAP_Msk,
|
||||
AFIO_MAPR_CAN_REMAP_REMAP2);
|
||||
if (gpio == GPIO('D', 0) || gpio == GPIO('D', 1))
|
||||
stm32f1_alternative_remap(AFIO_MAPR_CAN_REMAP_Msk,
|
||||
AFIO_MAPR_CAN_REMAP_REMAP3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user