Skip to content
Snippets Groups Projects
Commit 5f50e2b5 authored by Carsten Thiele's avatar Carsten Thiele
Browse files

configurable HSITRIM value in SystemInit48HSI()

parent 012aabdb
No related branches found
No related tags found
No related merge requests found
......@@ -808,7 +808,7 @@ void SystemInit48HSI( void )
{
// Values lifted from the EVT. There is little to no documentation on what this does.
RCC->CFGR0 = RCC_HPRE_DIV1 | RCC_PLLSRC_HSI_Mul2; // PLLCLK = HSI * 2 = 48 MHz; HCLK = SYSCLK = APB1
RCC->CTLR = RCC_HSION | RCC_PLLON | (3 << HSITRIM); // Use HSI, but enable PLL.
RCC->CTLR = RCC_HSION | RCC_PLLON | (HSITRIM << 3); // Use HSI, but enable PLL.
FLASH->ACTLR = FLASH_ACTLR_LATENCY_1; // 1 Cycle Latency
RCC->INTR = 0x009F0000; // Clear PLL, CSSC, HSE, HSI and LSI ready flags.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment