49#if !defined (HSE_VALUE)
50 #define HSE_VALUE ((uint32_t)25000000)
53#if !defined (HSI_VALUE)
54 #define HSI_VALUE ((uint32_t)16000000)
82#if defined(USER_VECT_TAB_ADDRESS)
86#if defined(VECT_TAB_SRAM)
87#define VECT_TAB_BASE_ADDRESS RAMDTCM_BASE
89#define VECT_TAB_OFFSET 0x00000000U
92#define VECT_TAB_BASE_ADDRESS FLASH_BASE
94#define VECT_TAB_OFFSET 0x00000000U
125 const uint8_t
AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
154#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
155 SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2));
159#if defined(USER_VECT_TAB_ADDRESS)
160 SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET;
202 uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
205 tmp = RCC->CFGR & RCC_CFGR_SWS;
220 pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22;
221 pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
226 pllvco = (
HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
231 pllvco = (
HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
234 pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2;
void SystemInit(void)
Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the Syst...
void SystemCoreClockUpdate(void)
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable cont...
const uint8_t APBPrescTable[8]
const uint8_t AHBPrescTable[16]