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:
Elias Bakken
2021-02-03 18:23:17 +01:00
committed by GitHub
parent 3162f4746f
commit 8b443acae8
4 changed files with 26 additions and 7 deletions

View File

@@ -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;
}