mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 13:00:34 +09:00
stm32: Adding support for STM32F031x6 (#3871)
Add support for alt usart 1 Do not select all functions on 16 K mcu Signed-off-by: Elias Bakken <elias@iagent.no>
This commit is contained in:
@@ -149,9 +149,10 @@ pll_setup(void)
|
||||
|
||||
// Setup CFGR3 register
|
||||
uint32_t cfgr3 = RCC_CFGR3_I2C1SW;
|
||||
if (CONFIG_USBSERIAL)
|
||||
#if CONFIG_USBSERIAL
|
||||
// Select PLL as source for USB clock
|
||||
cfgr3 |= RCC_CFGR3_USBSW;
|
||||
#endif
|
||||
RCC->CFGR3 = cfgr3;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user