CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121
首页 » 源代码 » stm32采集加速度 » stm32f10x_rcc.h

stm32f10x_rcc.h ( 文件浏览 )

文件源自:stm32采集加速度
  • sdsdv 发布于2016-05-29
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			/**
  ******************************************************************************
  * @file    stm32f10x_rcc.h
  * @author  MCD Application Team
  * @version V3.4.0
  * @date    10/15/2010
  * @brief   This file contains all the functions prototypes for the RCC firmware 
  *          library.
  ******************************************************************************
  * @copy
  *
  * 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.
  *
  * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
  */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_RCC_H
#define __STM32F10x_RCC_H

#ifdef __cplusplus
 extern "C" {

#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"

/** @addtogroup STM32F10x_StdPeriph_Driver
  * @{

  */

/** @addtogroup RCC
  * @{

  */

/** @defgroup RCC_Exported_Types
  * @{

  */

typedef struct
{

  uint32_t SYSCLK_Frequency;  /*!< returns SYSCLK clock frequency expressed in Hz */
  uint32_t HCLK_Frequency;    /*!< returns HCLK clock frequency expressed in Hz */
  uint32_t PCLK1_Frequency;   /*!< returns PCLK1 clock frequency expressed in Hz */
  uint32_t PCLK2_Frequency;   /*!< returns PCLK2 clock frequency expressed in Hz */
  uint32_t ADCCLK_Frequency;  /*!< returns ADCCLK clock frequency expressed in Hz */

}RCC_ClocksTypeDef;

/**
  * @
}
  */

/** @defgroup RCC_Exported_Constants
  * @{

  */

/** @defgroup HSE_configuration 
  * @{

  */

#define RCC_HSE_OFF                      ((uint32_t)0x00000000)
#define RCC_HSE_ON                       ((uint32_t)0x00010000)
#define RCC_HSE_Bypass                   ((uint32_t)0x00040000)
#define IS_RCC_HSE(HSE) (((HSE) == RCC_HSE_OFF) || ((HSE) == RCC_HSE_ON) || \
                         ((HSE) == RCC_HSE_Bypass))

/**
  * @
}
  */ 

/** @defgroup PLL_entry_clock_source 
  * @{

  */

#define RCC_PLLSource_HSI_Div2           ((uint32_t)0x00000000)

#if !defined (STM32F10X_LD_VL) && !defined (STM32F10X_MD_VL) && !defined (STM32F10X_HD_VL) && !defined (STM32F10X_CL)
 #define RCC_PLLSource_HSE_Div1           ((uint32_t)0x00010000)
 #define RCC_PLLSource_HSE_Div2           ((uint32_t)0x00030000)
 #define IS_RCC_PLL_SOURCE(SOURCE) (((SOURCE) == RCC_PLLSource_HSI_Div2) || \
                                   ((SOURCE) == RCC_PLLSource_HSE_Div1) || \
                                   ((SOURCE) == RCC_PLLSource_HSE_Div2))
#else
 #define RCC_PLLSource_PREDIV1            ((uint32_t)0x00010000)
 #define IS_RCC_PLL_SOURCE(SOURCE) (((SOURCE) == RCC_PLLSource_HSI_Div2) || \
                                   ((SOURCE) == RCC_PLLSource_PREDIV1))
#endif /* STM32F10X_CL */ 

/**
  * @
}
  */ 

/** @defgroup PLL_multiplication_factor 
  * @{

  */
#ifndef STM32F10X_CL
 #define RCC_PLLMul_2                    ((uint32_t)0x00000000)
 #define RCC_PLLMul_3                    ((uint32_t)0x00040000)
 #define RCC_PLLMul_4                    ((uint32_t)0x00080000)
 #define RCC_PLLMul_5                    ((uint32_t)0x000C0000)
 #define RCC_PLLMul_6                    ((uint32_t)0x00100000)
 #define RCC_PLLMul_7                    ((uint32_t)0x00140000)
 #define RCC_PLLMul_8                    ((uint32_t)0x00180000)
 #define RCC_PLLMul_9                    ((uint32_t)0x001C0000)
 #define RCC_PLLMul_10                   ((uint32_t)0x00200000)
 #define RCC_PLLMul_11                   ((uint32_t)0x00240000)
 #define RCC_PLLMul_12                   ((uint32_t)0x00280000)
 #define RCC_PLLMul_13                   ((uint32_t)0x002C0000)
 #define RCC_PLLMul_14                   ((uint32_t)0x00300000)
 #define RCC_PLLMul_15                   ((uint32_t)0x00340000)
 #define RCC_PLLMul_16                   ((uint32_t)0x00380000)
 #define IS_RCC_PLL_MUL(MUL) (((MUL) == RCC_PLLMul_2) || ((MUL) == RCC_PLLMul_3)   || \
                              ((MUL) == RCC_PLLMul_4) || ((MUL) == RCC_PLLMul_5)   || \
                              ((MUL) == RCC_PLLMul_6) || ((MUL) == RCC_PLLMul_7)   || \
                              ((MUL) == RCC_PLLMul_8) || ((MUL) == RCC_PLLMul_9)   || \
                              ((MUL) == RCC_PLLMul_10) || ((MUL) == RCC_PLLMul_11) || \
                              ((MUL) == RCC_PLLMul_12) || ((MUL) == RCC_PLLMul_13) || \
                              ((MUL) == RCC_PLLMul_14) || ((MUL) == RCC_PLLMul_15) || \
                              ((MUL) == RCC_PLLMul_16))

#else
 #define RCC_PLLMul_4                    ((uint32_t)0x00080000)
 #define RCC_PLLMul_5                    ((uint32_t)0x000C0000)
 #define RCC_PLLMul_6                    ((uint32_t)0x00100000)
 #define RCC_PLLMul_7                    ((uint32_t)0x00140000)
 #define RCC_PLLMul_8                    ((uint32_t)0x00180000)
 #define RCC_PLLMul_9                    ((uint32_t)0x001C0000)
 #define RCC_PLLMul_6_5                  ((uint32_t)0x00340000)

 #define IS_RCC_PLL_MUL(MUL) (((MUL) == RCC_PLLMul_4) || ((MUL) == RCC_PLLMul_5) || \
                              ((MUL) == RCC_PLLMul_6) || ((MUL) == RCC_PLLMul_7) || \
                              ((MUL) == RCC_PLLMul_8) || ((MUL) == RCC_PLLMul_9) || \
                              ((MUL) == RCC_PLLMul_6_5))
#endif /* STM32F10X_CL */                              
/**
  * @
}
  */

/** @defgroup PREDIV1_division_factor
  * @{

  */
#if defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || defined (STM32F10X_HD_VL) || defined (STM32F10X_CL)
 #define  RCC_PREDIV1_Div1               ((uint32_t)0x00000000)
 #define  RCC_PREDIV1_Div2               ((uint32_t)0x00000001)
 #define  RCC_PREDIV1_Div3               ((uint32_t)0x00000002)
 #define  RCC_PREDIV1_Div4               ((uint32_t)0x00000003)
 #define  RCC_PREDIV1_Div5               ((uint32_t)0x00000004)
 #define  RCC_PREDIV1_Div6               ((uint32_t)0x00000005)
 #define  RCC_PREDIV1_Div7               ((uint32_t)0x00000006)
 #define  RCC_PREDIV1_Div8               ((uint32_t)0x00000007)
 #define  RCC_PREDIV1_Div9               ((uint32_t)0x00000008)
 #define  RCC_PREDIV1_Div10              ((uint32_t)0x00000009)
 #define  RCC_PREDIV1_Div11              ((uint32_t)0x0000000A)
 #define  RCC_PREDIV1_Div12              ((uint32_t)0x0000000B)
 #define  RCC_PREDIV1_Div13              ((uint32_t)0x0000000C)
 #define  RCC_PREDIV1_Div14              ((uint32_t)0x0000000D)
 #define  RCC_PREDIV1_Div15              ((uint32_t)0x0000000E)
 #define  RCC_PREDIV1_Div16              ((uint32_t)0x0000000F)

 #define IS_RCC_PREDIV1(PREDIV1) (((PREDIV1) == RCC_PREDIV1_Div1) || ((PREDIV1) == RCC_PREDIV1_Div2) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div3) || ((PREDIV1) == RCC_PREDIV1_Div4) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div5) || ((PREDIV1) == RCC_PREDIV1_Div6) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div7) || ((PREDIV1) == RCC_PREDIV1_Div8) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div9) || ((PREDIV1) == RCC_PREDIV1_Div10) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div11) || ((PREDIV1) == RCC_PREDIV1_Div12) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div13) || ((PREDIV1) == RCC_PREDIV1_Div14) || \
                                  ((PREDIV1) == RCC_PREDIV1_Div15) || ((PREDIV1) == RCC_PREDIV1_Div16))
#endif
/**
  * @
}
  */


/** @defgroup PREDIV1_clock_source
  * @{

  */
#ifdef STM32F10X_CL
/* PREDIV1 clock source (for STM32 connectivity line devices) */
 #define  RCC_PREDIV1_Source_HSE         ((uint32_t)0x00000000) 
 #define  RCC_PREDIV1_Source_PLL2        ((uint32_t)0x00010000) 

 #define IS_RCC_PREDIV1_SOURCE(SOURCE) (((SOURCE) == RCC_PREDIV1_Source_HSE) || \
                                        ((SOURCE) == RCC_PREDIV1_Source_PLL2)) 
#elif defined (STM32F10X_LD_VL) || defined (STM32F10X_MD_VL) || defined (STM32F10X_HD_VL)
/* PREDIV1 clock source (for STM32 Value line devices) */
 #define  RCC_PREDIV1_Source_HSE         ((uint32_t)0x00000000) 

 #define IS_RCC_PREDIV1_SOURCE(SOURCE) (((SOURCE) == RCC_PREDIV1_Source_HSE)) 
#endif
/**
  * @
}
  */

#ifdef STM32F10X_CL
/** @defgroup PREDIV2_division_factor
  * @{

  */
  
 #define  RCC_PREDIV2_Div1               ((uint32_t)0x00000000)
 #define  RCC_PREDIV2_Div2               ((uint32_t)0x00000010)
 #define  RCC_PREDIV2_Div3               ((uint32_t)0x00000020)
 #define  RCC_PREDIV2_Div4               ((uint32_t)0x00000030)
 #define  RCC_PREDIV2_Div5               ((uint32_t)0x00000040)
 #define  RCC_PREDIV2_Div6               ((uint32_t)0x00000050)
 #define  RCC_PREDIV2_Div7               ((uint32_t)0x00000060)
 #define  RCC_PREDIV2_Div8               ((uint32_t)0x00000070)
 #define  RCC_PREDIV2_Div9               ((uint32_t)0x00000080)
 #define  RCC_PREDIV2_Div10              ((uint32_t)0x00000090)
 #define  RCC_PREDIV2_Div11              ((uint32_t)0x000000A0)
 #define  RCC_PREDIV2_Div12              ((uint32_t)0x000000B0)
 #define  RCC_PREDIV2_Div13              ((uint32_t)0x000000C0)
 #define  RCC_PREDIV2_Div14              ((uint32_t)0x000000D0)
 #define  RCC_PREDIV2_Div15              ((uint32_t)0x000000E0)
 #define  RCC_PREDIV2_Div16              ((uint32_t)0x000000F0)

 #define IS_RCC_PREDIV2(PREDIV2) (((PREDIV2) == RCC_PREDIV2_Div1) || ((PREDIV2) == RCC_PREDIV2_Div2) || \
                                  ((PREDIV2) == RCC_PREDIV2_Div3) || ((PREDIV2) == RCC_PREDIV2_Div4) || \
                                  ((PREDIV2) == RCC_PREDIV2_Div5) || ((PREDIV2) == RCC_PREDIV2_Div6) || \
                                  ((PREDIV2) == RCC_PREDIV2_Div7) || ((PREDIV2) == RCC_PREDIV2_Div8) || \
        
...
...
(文件超长,未完全显示,请下载后阅读剩余部分)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
Ʋ

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
delay.c3.34 kB19-09-15|19:26
delay.h231.00 B19-09-15|19:26
IOI2C.c5.84 kB19-09-15|19:26
IOI2C.h2.80 kB19-09-15|19:26
JY901.h2.18 kB19-09-15|19:26
UARTs.c4.31 kB19-09-15|19:26
UARTs.h296.00 B19-09-15|19:26
IMU_AHRS.plg2.27 kB19-09-15|19:26
IMU_AHRS.uvgui.Administrator135.79 kB19-09-15|19:26
IMU_AHRS.uvgui.zw135.96 kB19-09-15|19:26
IMU_AHRS.uvgui_Administrator.bak135.80 kB19-09-15|19:26
IMU_AHRS.uvgui_zw.bak135.96 kB19-09-15|19:26
IMU_AHRS.uvopt145.94 kB23-05-16|21:57
IMU_AHRS.uvproj16.92 kB19-09-15|19:26
IMU_AHRS_IMU_AHRS.dep15.69 kB23-05-16|21:55
IMU_AHRS_Target1.00 B100%|19-09-15
IMU_AHRS_uvopt.bak147.50 kB23-05-16|20:39
IMU_AHRS_uvproj.bak16.92 kB19-09-15|19:26
JLink0.00 B234|47%
JLinkLog.txt35.25 kB23-05-16|21:57
JLinkSettings.ini573.00 B19-09-15|19:26
misc.h8.77 kB19-09-15|19:26
stm32f10x_adc.h21.18 kB19-09-15|19:26
stm32f10x_bkp.h7.38 kB19-09-15|19:26
stm32f10x_can.h26.91 kB19-09-15|19:26
stm32f10x_cec.h6.42 kB19-09-15|19:26
stm32f10x_crc.h2.11 kB19-09-15|19:26
stm32f10x_dac.h14.88 kB19-09-15|19:26
stm32f10x_dbgmcu.h3.73 kB19-09-15|19:26
stm32f10x_dma.h20.27 kB19-09-15|19:26
stm32f10x_exti.h6.66 kB19-09-15|19:26
stm32f10x_flash.h24.85 kB19-09-15|19:26
stm32f10x_fsmc.h26.38 kB19-09-15|19:26
stm32f10x_gpio.h19.70 kB19-09-15|19:26
stm32f10x_i2c.h29.33 kB19-09-15|19:26
stm32f10x_iwdg.h3.74 kB19-09-15|19:26
stm32f10x_pwr.h4.28 kB19-09-15|19:26
stm32f10x_rcc.h29.74 kB19-09-15|19:26
stm32f10x_rtc.h3.77 kB19-09-15|19:26
stm32f10x_sdio.h21.35 kB19-09-15|19:26
stm32f10x_spi.h17.31 kB19-09-15|19:26
stm32f10x_tim.h51.20 kB19-09-15|19:26
stm32f10x_usart.h16.16 kB19-09-15|19:26
stm32f10x_wwdg.h2.90 kB19-09-15|19:26
Release_Notes.html28.56 kB19-09-15|19:26
misc.c6.88 kB19-09-15|19:26
stm32f10x_adc.c46.09 kB19-09-15|19:26
stm32f10x_bkp.c8.26 kB19-09-15|19:26
stm32f10x_can.c44.05 kB19-09-15|19:26
stm32f10x_cec.c11.38 kB19-09-15|19:26
stm32f10x_crc.c3.27 kB19-09-15|19:26
stm32f10x_dac.c18.64 kB19-09-15|19:26
stm32f10x_dbgmcu.c5.03 kB19-09-15|19:26
stm32f10x_dma.c28.91 kB19-09-15|19:26
stm32f10x_exti.c6.80 kB19-09-15|19:26
stm32f10x_flash.c61.08 kB19-09-15|19:26
stm32f10x_fsmc.c34.65 kB19-09-15|19:26
stm32f10x_gpio.c22.68 kB19-09-15|19:26
stm32f10x_i2c.c44.71 kB19-09-15|19:26
stm32f10x_iwdg.c4.80 kB19-09-15|19:26
stm32f10x_pwr.c8.55 kB19-09-15|19:26
stm32f10x_rcc.c50.07 kB19-09-15|19:26
stm32f10x_rtc.c8.40 kB19-09-15|19:26
stm32f10x_sdio.c28.25 kB19-09-15|19:26
stm32f10x_spi.c29.52 kB19-09-15|19:26
stm32f10x_tim.c106.60 kB19-09-15|19:26
stm32f10x_usart.c37.41 kB19-09-15|19:26
stm32f10x_wwdg.c5.60 kB19-09-15|19:26
IMU_AHRS.map38.31 kB23-05-16|21:55
startup_stm32f10x_md.lst39.67 kB23-05-16|21:55
core_cm3.crf3.45 kB23-05-16|21:55
core_cm3.d93.00 B23-05-16|21:55
core_cm3.o10.21 kB23-05-16|21:55
delay.crf303.63 kB23-05-16|21:55
delay.d931.00 B23-05-16|21:55
delay.o327.39 kB23-05-16|21:55
IMU_AHRS.axf281.75 kB23-05-16|21:55
IMU_AHRS.hex15.61 kB23-05-16|21:55
IMU_AHRS.htm41.09 kB23-05-16|21:55
IMU_AHRS.lnp663.00 B23-05-16|21:55
IMU_AHRS.plg14.96 kB23-05-16|21:57
IMU_AHRS.tra1.95 kB23-05-16|21:55
ioi2c.crf307.89 kB23-05-16|21:55
ioi2c.d973.00 B23-05-16|21:55
ioi2c.o330.86 kB23-05-16|21:55
main.crf314.87 kB23-05-16|21:55
main.d1.11 kB23-05-16|21:55
main.o335.79 kB23-05-16|21:55
misc.crf303.17 kB23-05-16|21:55
misc.d896.00 B23-05-16|21:55
misc.o325.18 kB23-05-16|21:55
startup_stm32f10x_md.d65.00 B23-05-16|21:55
startup_stm32f10x_md.o5.67 kB23-05-16|21:55
stm32f10x_gpio.crf306.58 kB23-05-16|21:55
stm32f10x_gpio.d1.10 kB23-05-16|21:55
stm32f10x_gpio.o331.43 kB23-05-16|21:55
stm32f10x_it.crf302.64 kB23-05-16|21:55
stm32f10x_it.d1.05 kB23-05-16|21:55
stm32f10x_it.o325.60 kB23-05-16|21:55
stm32f10x_rcc.crf310.08 kB23-05-16|21:55
stm32f10x_rcc.d1.08 kB23-05-16|21:55
stm32f10x_rcc.o335.76 kB23-05-16|21:55
stm32f10x_tim.crf324.73 kB23-05-16|21:55
stm32f10x_tim.d1.08 kB23-05-16|21:55
stm32f10x_tim.o359.48 kB23-05-16|21:55
stm32f10x_usart.crf308.64 kB23-05-16|21:55
stm32f10x_usart.d1.12 kB23-05-16|21:55
stm32f10x_usart.o335.49 kB23-05-16|21:55
system_stm32f10x.crf304.32 kB23-05-16|21:55
system_stm32f10x.d1.08 kB23-05-16|21:55
system_stm32f10x.o325.62 kB23-05-16|21:55
uarts.crf310.50 kB23-05-16|21:55
uarts.d1.01 kB23-05-16|21:55
uarts.o331.40 kB23-05-16|21:55
core_cm3.c16.87 kB19-09-15|19:26
core_cm3.h83.71 kB19-09-15|19:26
startup_stm32f10x_md.s12.46 kB19-09-15|19:26
stm32f10x.h619.08 kB19-09-15|19:26
system_stm32f10x.c35.70 kB19-09-15|19:26
system_stm32f10x.h2.04 kB19-09-15|19:26
main.c3.29 kB23-05-16|21:55
stm32f10x_conf.h3.18 kB19-09-15|19:26
stm32f10x_it.c4.35 kB19-09-15|19:26
stm32f10x_it.h1.94 kB19-09-15|19:26
UARTs0.00 B07-04-16|21:30
inc0.00 B07-04-16|21:30
src0.00 B07-04-16|21:30
HardWareDriver0.00 B07-04-16|21:30
Lib0.00 B07-04-16|21:30
List0.00 B07-04-16|21:30
Output0.00 B23-05-16|21:55
StartUp0.00 B07-04-16|21:30
User_Src0.00 B07-04-16|21:30
备用:UART1水平检测Xangel0.00 B23-05-16|21:57
备用:UART1水平检测Xangel0.00 B23-05-16|21:47
Ʋ

stm32f10x_rcc.h (1.71 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的