⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stm32f10x_rcc.hpp

📁 STM32 USB HID
💻 HPP
字号:
#ifndef __STM32F10x_RCC_HPP__
#define __STM32F10x_RCC_HPP__
//-----------------------------------------------------------------------------
#define  RCC_CR 				(*((volatile unsigned long*)0x40021000))
#define  RCC_CFGR 			(*((volatile unsigned long*)0x40021004))
#define  RCC_CIR	 			(*((volatile unsigned long*)0x40021008))
#define  RCC_APB2RSTR 	(*((volatile unsigned long*)0x4002100C))
#define  RCC_APB1RSTR 	(*((volatile unsigned long*)0x40021010))	
#define  RCC_AHBENR 		(*((volatile unsigned long*)0x40021014))
#define  RCC_APB2ENR 		(*((volatile unsigned long*)0x40021018))
#define  RCC_APB1ENR 		(*((volatile unsigned long*)0x4002101C))
#define  RCC_BDCR 			(*((volatile unsigned long*)0x40021020))
#define  RCC_CSR	 			(*((volatile unsigned long*)0x40021024))
//-----------------------------------------------------------------------------
#define  RCC_CR_BIT				((volatile unsigned long*)(0x42000000+(0x00021000<<5)))
#define  RCC_CFGR_BIT 		((volatile unsigned long*)(0x42000000+(0x00021004<<5)))
#define  RCC_CIR_BIT	 		((volatile unsigned long*)(0x42000000+(0x00021008<<5)))
#define  RCC_APB2RSTR_BIT ((volatile unsigned long*)(0x42000000+(0x0002100C<<5)))
#define  RCC_APB1RSTR_BIT ((volatile unsigned long*)(0x42000000+(0x00021010<<5)))	
#define  RCC_AHBENR_BIT 	((volatile unsigned long*)(0x42000000+(0x00021014<<5)))
#define  RCC_APB2ENR_BIT 	((volatile unsigned long*)(0x42000000+(0x00021018<<5)))
#define  RCC_APB1ENR_BIT	((volatile unsigned long*)(0x42000000+(0x0002101C<<5)))
#define  RCC_BDCR_BIT			((volatile unsigned long*)(0x42000000+(0x00021020<<5)))
#define  RCC_CSR_BIT			((volatile unsigned long*)(0x42000000+(0x00021024<<5)))
//CR---------------------------------------------------------------------------
#define PLL_RDY			 25
#define PLL_ON			 24
#define USBPRE			 22
#define HSE_RDY			 17
#define HSE_ON			 16
#define HSI_RDY			 1
#define HSI_ON			 0
//CFGR-------------------------------------------------------------------------
#define MCO_2		 	25
#define MCO_1		 	24
#define MCO_0		 	23

#define USBPRE		 	22

#define PLLMUL_3		21
#define PLLMUL_2		20
#define PLLMUL_1		19
#define PLLMUL_0		18

#define PLLXTPRE		17
#define PLLSRC			16

#define ADCPRE_1		15
#define ADCPRE_0		14

#define PPRE2_2			13
#define PPRE2_1			12
#define PPRE2_0			11

#define PPRE1_2			10
#define PPRE1_1			9
#define PPRE1_0			8

#define HPRE_3			7
#define HPRE_2			6
#define HPRE_1			5
#define HPRE_0			4

#define SWS_1			3
#define SWS_0			2
#define SW_1			1
#define SW_0			0
//APB2RSTR---------------------------------------------------------------------
#define TIMER3_RST   	1
//AHBENR-----------------------------------------------------------------------
#define DMA1_EN      	0
//APB2ENR----------------------------------------------------------------------
#define   USART1_EN   	14
#define ADC1_EN      	9
#define GPIOC_EN		4
#define GPIOB_EN		3
#define GPIOA_EN		2
//APB1ENR----------------------------------------------------------------------
#define USB_EN       	23
#define TIMER_3_EN    	1
//-----------------------------------------------------------------------------
void RCC_Configration(void);
//-----------------------------------------------------------------------------
#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -