STM32F10x_StdPeriph_Examples/RCC/main.c File Reference

Main program body. More...

#include "main.h"
#include "stm32f10x.h"
#include "stm32_eval.h"

Go to the source code of this file.

Defines

#define DELAY_COUNT   0x3FFFF

Functions

void Delay (__IO uint32_t nCount)
 Inserts a delay time.
int main (void)
 Main program.
void NVIC_Configuration (void)
 Configures Vector Table base location.
void SetSysClock (void)
 Configures the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockTo24 (void)
 Sets System clock frequency to 24MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockTo36 (void)
 Sets System clock frequency to 36MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockTo48 (void)
 Sets System clock frequency to 48MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockTo56 (void)
 Sets System clock frequency to 56MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockTo72 (void)
 Sets System clock frequency to 72MHz and configure HCLK, PCLK2 and PCLK1 prescalers.
void SetSysClockToHSE (void)
 Selects HSE as System clock source and configure HCLK, PCLK2 and PCLK1 prescalers.

Variables

GPIO_InitTypeDef GPIO_InitStructure
ErrorStatus HSEStartUpStatus
RCC_ClocksTypeDef RCC_ClockFreq

Detailed Description

Main program body.

Author:
MCD Application Team
Version:
V3.4.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file STM32F10x_StdPeriph_Examples/RCC/main.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

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