STM32F10x_System_Private_Functions
[Stm32f10x_system]

Functions

static void SetSysClock (void)
 Configures the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers.
static void SetSysClockTo56 (void)
 Setup the external memory controller.
static void SetSysClockTo72 (void)
 Setup the external memory controller.
void SystemCoreClockUpdate (void)
 Update SystemCoreClock according to Clock Register Values.
void SystemInit (void)
 Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemCoreClock variable.

Function Documentation

static void SetSysClock ( void   )  [static]

Configures the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers.

Parameters:
None 
Return values:
None 

Definition at line 358 of file STM32F10x_StdPeriph_Template/system_stm32f10x.c.

References SetSysClockTo24(), SetSysClockTo36(), SetSysClockTo48(), SetSysClockTo56(), SetSysClockTo72(), and SetSysClockToHSE().

static void SetSysClockTo56 ( void   )  [static]

Setup the external memory controller.

Called in startup_stm32f10x.s before jump to __main

Parameters:
None 
Return values:
None Sets System clock frequency to 56MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
Note:
This function should be used only after reset.
Parameters:
None 
Return values:
None 

Definition at line 824 of file STM32F10x_StdPeriph_Examples/ADC/3ADCs_DMA/system_stm32f10x.c.

References FLASH, FLASH_ACR_LATENCY, FLASH_ACR_LATENCY_2, FLASH_ACR_PRFTBE, HSE_STARTUP_TIMEOUT, RCC, RCC_CFGR_HPRE_DIV1, RCC_CFGR_PLLMULL, RCC_CFGR_PLLMULL7, RCC_CFGR_PLLSRC, RCC_CFGR_PLLSRC_HSE, RCC_CFGR_PLLXTPRE, RCC_CFGR_PPRE1_DIV2, RCC_CFGR_PPRE2_DIV1, RCC_CFGR_SW, RCC_CFGR_SW_PLL, RCC_CFGR_SWS, RCC_CR_HSEON, RCC_CR_HSERDY, RCC_CR_PLLON, RCC_CR_PLLRDY, and RESET.

Referenced by SetSysClock().

static void SetSysClockTo72 ( void   )  [static]

Setup the external memory controller.

Called in startup_stm32f10x.s before jump to __main

Parameters:
None 
Return values:
None Sets System clock frequency to 72MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
Note:
This function should be used only after reset.
Parameters:
None 
Return values:
None 

Definition at line 926 of file STM32F10x_StdPeriph_Examples/BKP/Backup_Data/system_stm32f10x.c.

References FLASH, FLASH_ACR_LATENCY, FLASH_ACR_LATENCY_2, FLASH_ACR_PRFTBE, HSE_STARTUP_TIMEOUT, RCC, RCC_CFGR_HPRE_DIV1, RCC_CFGR_PLLMULL, RCC_CFGR_PLLMULL9, RCC_CFGR_PLLSRC, RCC_CFGR_PLLSRC_HSE, RCC_CFGR_PLLXTPRE, RCC_CFGR_PPRE1_DIV2, RCC_CFGR_PPRE2_DIV1, RCC_CFGR_SW, RCC_CFGR_SW_PLL, RCC_CFGR_SWS, RCC_CR_HSEON, RCC_CR_HSERDY, RCC_CR_PLLON, RCC_CR_PLLRDY, and RESET.

void SystemCoreClockUpdate ( void   ) 

Update SystemCoreClock according to Clock Register Values.

Note:
None
Parameters:
None 
Return values:
None 

Definition at line 245 of file STM32F10x_StdPeriph_Template/system_stm32f10x.c.

References AHBPrescTable, HSE_VALUE, HSI_VALUE, RCC, RCC_CFGR_HPRE, RCC_CFGR_PLLMULL, RCC_CFGR_PLLSRC, RCC_CFGR_PLLXTPRE, RCC_CFGR_SWS, RESET, and SystemCoreClock.

void SystemInit ( void   ) 

Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemCoreClock variable.

Note:
This function should be used only after reset.
Parameters:
None 
Return values:
None 

Definition at line 180 of file STM32F10x_StdPeriph_Template/system_stm32f10x.c.

References FLASH_BASE, RCC, SetSysClock(), SRAM_BASE, and VECT_TAB_OFFSET.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32