From 1fc6d214f4fab8b9e6a051fbe42f27ef4add77ef Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 28 Jan 2025 18:37:29 -0500 Subject: stm32: Add support for stm32f070x6 mcus This mcu has smaller memory and may require remapping of PA11/PA12. Signed-off-by: Kevin O'Connor --- src/stm32/stm32f0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/stm32/stm32f0.c') diff --git a/src/stm32/stm32f0.c b/src/stm32/stm32f0.c index 72fc1645..d7af831e 100644 --- a/src/stm32/stm32f0.c +++ b/src/stm32/stm32f0.c @@ -186,10 +186,8 @@ armcm_main(void) hsi14_setup(); // Support pin remapping USB/CAN pins on low pinout stm32f042 -#ifdef SYSCFG_CFGR1_PA11_PA12_RMP if (CONFIG_STM32_USB_PA11_PA12_REMAP || CONFIG_STM32_CANBUS_PA11_PA12_REMAP) - SYSCFG->CFGR1 |= SYSCFG_CFGR1_PA11_PA12_RMP; -#endif + SYSCFG->CFGR1 |= 1<<4; // SYSCFG_CFGR1_PA11_PA12_RMP sched_main(); } -- cgit v1.2.3-70-g09d2