mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 05:07:53 -06: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:
parent
3162f4746f
commit
8b443acae8
4 changed files with 26 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue