diff options
Diffstat (limited to 'src/stm32/stm32f1.c')
-rw-r--r-- | src/stm32/stm32f1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm32/stm32f1.c b/src/stm32/stm32f1.c index 5680cfba..526ec485 100644 --- a/src/stm32/stm32f1.c +++ b/src/stm32/stm32f1.c @@ -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); } } |