aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-03-18 13:20:54 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-03-18 13:33:33 -0400
commit1eddc0fd907fb7f28e0b4537494e711f7ac1cac4 (patch)
treec3390bc4c024e231e9cb271231b91b3e232612ad /src/stm32/stm32f0.c
parentc8dc3afc235d9190591056a852f7ff4996c41c54 (diff)
downloadkutter-1eddc0fd907fb7f28e0b4537494e711f7ac1cac4.tar.gz
kutter-1eddc0fd907fb7f28e0b4537494e711f7ac1cac4.tar.xz
kutter-1eddc0fd907fb7f28e0b4537494e711f7ac1cac4.zip
stm32: Simplify USB/Serial/CANbus Kconfig selection
Combine the various communication options into a single "make menuconfig" menu item. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32f0.c')
-rw-r--r--src/stm32/stm32f0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm32/stm32f0.c b/src/stm32/stm32f0.c
index b876db35..a2a3a52f 100644
--- a/src/stm32/stm32f0.c
+++ b/src/stm32/stm32f0.c
@@ -224,7 +224,8 @@ armcm_main(void)
// Support pin remapping USB/CAN pins on low pinout stm32f042
#ifdef SYSCFG_CFGR1_PA11_PA12_RMP
- if (CONFIG_STM32F042_PIN_SWAP) {
+ if (CONFIG_STM32_USB_PA11_PA12_REMAP
+ || CONFIG_STM32_CANBUS_PA11_PA12_REMAP) {
enable_pclock(SYSCFG_BASE);
SYSCFG->CFGR1 |= SYSCFG_CFGR1_PA11_PA12_RMP;
}