/*----------------------------------------------------------------------------
* Name: STM32_Init.c
* Purpose: STM32 peripherals initialisation
* Version: V1.10
*----------------------------------------------------------------------------
* This file is part of the uVision/ARM development tools.
* This software may only be used under the terms of a valid, current,
* end user licence from KEIL for a compatible version of KEIL software
* development tools. Nothing else gives you the right to use this software.
*
* Copyright (c) 2005-2007 Keil Software. All rights reserved.
*----------------------------------------------------------------------------*/
#include <stm32f10x_lib.h> // STM32F10x Library Definitions
#include <STM32_Reg.h> // missing bit definitions
//-------- <<< Use Configuration Wizard in Context Menu >>> -----------------
//
//=========================================================================== Clock Configuration
// <e0> Clock Configuration
// <h> Clock Control Register Configuration (RCC_CR)
// <e1.24> PLLON: PLL enable
// <i> Default: PLL Disabled
// <o2.18..21> PLLMUL: PLL Multiplication Factor
// <i> Default: PLLSRC * 2
// <0=> PLLSRC * 2
// <1=> PLLSRC * 3
// <2=> PLLSRC * 4
// <3=> PLLSRC * 5
// <4=> PLLSRC * 6
// <5=> PLLSRC * 7
// <6=> PLLSRC * 8
// <7=> PLLSRC * 9
// <8=> PLLSRC * 10
// <9=> PLLSRC * 11
// <10=> PLLSRC * 12
// <11=> PLLSRC * 13
// <12=> PLLSRC * 14
// <13=> PLLSRC * 15
// <14=> PLLSRC * 16
// <o2.17> PLLXTPRE: HSE divider for PLL entry
// <i> Default: HSE
// <0=> HSE
// <1=> HSE / 2
// <o2.16> PLLSRC: PLL entry clock source
// <i> Default: HSI/2
// <0=> HSI / 2
// <1=> HSE (PLLXTPRE output)
// </e>
// <o1.19> CSSON: Clock Security System enable
// <i> Default: Clock detector OFF
// <o1.18> HSEBYP: External High Speed clock Bypass
// <i> Default: HSE oscillator not bypassed
// <o1.16> HSEON: External High Speed clock enable
// <i> Default: HSE oscillator OFF
// <o1.3..7> HSITRIM: Internal High Speed clock trimming <0-31>
// <i> Default: 0
// <o1.0> HSION: Internal High Speed clock enable
// <i> Default: internal 8MHz RC oscillator OFF
// </h>
// <h> Clock Configuration Register Configuration (RCC_CFGR)
// <o2.24..26> MCO: Microcontroller Clock Output
// <i> Default: MCO = noClock
// <0=> MCO = noClock
// <4=> MCO = SYSCLK
// <5=> MCO = HSI
// <6=> MCO = HSE
// <7=> MCO = PLLCLK / 2
// <o2.22> USBPRE: USB prescaler
// <i> Default: USBCLK = PLLCLK / 1.5
// <0=> USBCLK = PLLCLK / 1.5
// <1=> USBCLK = PLLCLK
// <o2.14..15> ADCPRE: ADC prescaler
// <i> Default: ADCCLK=PCLK2 / 2
// <0=> ADCCLK = PCLK2 / 2
// <1=> ADCCLK = PCLK2 / 4
// <2=> ADCCLK = PCLK2 / 6
// <3=> ADCCLK = PCLK2 / 8
// <o2.11..13> PPRE2: APB High speed prescaler (APB2)
// <i> Default: PCLK2 = HCLK
// <0=> PCLK2 = HCLK
// <4=> PCLK2 = HCLK / 2
// <5=> PCLK2 = HCLK / 4
// <6=> PCLK2 = HCLK / 8
// <7=> PCLK2 = HCLK / 16
// <o2.8..10> PPRE1: APB Low speed prescaler (APB1)
// <i> Default: PCLK1 = HCLK
// <0=> PCLK1 = HCLK
// <4=> PCLK1 = HCLK / 2
// <5=> PCLK1 = HCLK / 4
// <6=> PCLK1 = HCLK / 8
// <7=> PCLK1 = HCLK / 16
// <o2.4..7> HPRE: AHB prescaler
// <i> Default: HCLK = SYSCLK
// <0=> HCLK = SYSCLK
// <8=> HCLK = SYSCLK / 2
// <9=> HCLK = SYSCLK / 4
// <10=> HCLK = SYSCLK / 8
// <11=> HCLK = SYSCLK / 16
// <12=> HCLK = SYSCLK / 64
// <13=> HCLK = SYSCLK / 128
// <14=> HCLK = SYSCLK / 256
// <15=> HCLK = SYSCLK / 512
// <o2.0..1> SW: System Clock Switch
// <i> Default: SYSCLK = HSE
// <0=> SYSCLK = HSI
// <1=> SYSCLK = HSE
// <2=> SYSCLK = PLLCLK
// </h>
// <o3>HSE: External High Speed Clock [Hz] <4000000-16000000>
// <i> clock value for the used External High Speed Clock (4MHz <= HSE <= 16MHz).
// <i> Default: 8000000 (8MHz)
// </e> End of Clock Configuration
#define __CLOCK_SETUP 1
#define __RCC_CR_VAL 0x01010082
#define __RCC_CFGR_VAL 0x00098402
#define __HSE 11059200
//=========================================================================== Independent Watchdog Configuration
// <e0> Independent Watchdog Configuration
// <o1> IWDG period [us] <125-32000000:125>
// <i> Set the timer period for Independent Watchdog.
// <i> Default: 1000000 (1s)
// </e>
#define __IWDG_SETUP 0
#define __IWDG_PERIOD 0x001E8480
//=========================================================================== System Timer Configuration
// <e0> System Timer Configuration
// <o1.2> System Timer clock source selection
// <i> Default: SYSTICKCLK = HCLK/8
// <0=> SYSTICKCLK = HCLK/8
// <1=> SYSTICKCLK = HCLK
// <o2> SYSTICK period [ms] <1-1000:10>
// <i> Set the timer period for System Timer.
// <i> Default: 1 (1ms)
// <o1.1> System Timer interrupt enabled
// </e>
#define __SYSTICK_SETUP 0
#define __SYSTICK_CTRL_VAL 0x00000006
#define __SYSTICK_PERIOD 0x000000C8
//=========================================================================== Real Time Clock Configuration
// <e0> Real Time Clock Configuration
// <o1.8..9> RTC clock source selection
// <i> Default: No Clock
// <0=> No Clock
// <1=> RTCCLK = LSE (32,768kHz)
// <2=> RTCCLK = LSI (32 kHz)
// <3=> RTCCLK = HSE/128
// <o2> RTC period [ms] <10-1000:10>
// <i> Set the timer period for Real Time Clock.
// <i> Default: 1000 (1s)
// <h> RTC Time Value
// <o3> Hour <0-23>
// <o4> Minute <0-59>
// <o5> Second <0-59>
// </h>
// <h> RTC Alarm Value
// <o6> Hour <0-23>
// <o7> Minute <0-59>
// <o8> Second <0-59>
// </h>
// <e9> RTC interrupts
// <o10.0> RTC_CRH.SECIE: Second interrupt enabled
// <o10.1> RTC_CRH.ALRIE: Alarm interrupt enabled
// <o10.2> RTC_CRH.OWIE: Overflow interrupt enabled
// </e>
// </e>
#define __RTC_SETUP 0
#define __RTC_CLKSRC_VAL 0x00000100
#define __RTC_PERIOD 0x000003E8
#define __RTC_TIME_H 0x00
#define __RTC_TIME_M 0x00
#define __RTC_TIME_S 0x00
#define __RTC_ALARM_H 0x00
#define __RTC_ALARM_M 0x01
#define __RTC_ALARM_S 0x00
#define __RTC_INTERRUPTS 0x00000001
#define __RTC_CRH 0x00000001
//=========================================================================== Timer Configuration
// <e0> Timer Configuration
//------
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
stm32进入停止模式 中断唤醒 keil 程序 (113个子文件)
stm32_init.__i 297B
LED_Flah.bin.axf 71KB
LED_Flah.axf 71KB
example.axf 42KB
Object_uvopt.bak 78KB
Object.Uv2.bak 3KB
Object_Uv2.Bak 3KB
Object_Opt.Bak 3KB
STM32_Init.c 253KB
stm32f10x_tim1.c 111KB
stm32f10x_tim.c 97KB
stm32f10x_adc.c 54KB
stm32f10x_i2c.c 44KB
stm32f10x_rcc.c 42KB
stm32f10x_usart.c 33KB
stm32f10x_flash.c 31KB
stm32f10x_can.c 31KB
stm32f10x_nvic.c 28KB
stm32f10x_spi.c 25KB
stm32f10x_dma.c 23KB
stm32f10x_gpio.c 21KB
stm32f10x_rtc.c 13KB
stm32f10x_pwr.c 11KB
stm32f10x_bkp.c 10KB
stm32f10x_exti.c 8KB
stm32f10x_wwdg.c 8KB
main.c 7KB
stm32f10x_systick.c 7KB
stm32f10x_lib.c 7KB
stm32f10x_iwdg.c 6KB
stm32_init.crf 145KB
main.crf 123KB
stm32f10x_gpio.crf 34KB
stm32f10x_rcc.crf 34KB
stm32f10x_nvic.crf 29KB
stm32f10x_pwr.crf 29KB
stm32f10x_exti.crf 22KB
stm32_init.d 1KB
main.d 1KB
stm32f10x_gpio.d 377B
stm32f10x_pwr.d 368B
stm32f10x_nvic.d 325B
stm32f10x_exti.d 325B
stm32f10x_rcc.d 317B
cortexm3_macro.d 53B
STM32F10x.d 43B
Object_Object.dep 5KB
stm32f10x_tim1.h 34KB
stm32f10x_tim.h 28KB
stm32f10x_map.h 20KB
stm32f10x_adc.h 16KB
stm32f10x_nvic.h 16KB
stm32f10x_i2c.h 15KB
stm32f10x_rcc.h 14KB
stm32f10x_gpio.h 12KB
stm32f10x_dma.h 12KB
stm32f10x_can.h 12KB
stm32f10x_usart.h 12KB
stm32f10x_flash.h 10KB
stm32f10x_spi.h 9KB
STM32_Reg.h 8KB
stm32f10x_exti.h 6KB
stm32f10x_conf.h 5KB
stm32f10x_pwr.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 3KB
stm32f10x_bkp.h 3KB
stm32f10x_type.h 3KB
stm32f10x_systick.h 3KB
stm32f10x_lib.h 3KB
stm32f10x_wwdg.h 3KB
cortexm3_macro.h 2KB
STM32_Init.h 924B
LED_Flah.hex 7KB
LED_Flah.bin.hex 7KB
example.hex 5KB
LED_Flah.bin.htm 43KB
LED_Flah.htm 43KB
example.htm 38KB
ExtDll.iex 19B
JLinkArm_Object.ini 205B
LED_Flah.bin.lnp 473B
LED_Flah.lnp 465B
example.lnp 404B
STM32F10x.lst 36KB
cortexm3_macro.lst 24KB
LED_Flah.map 70KB
PLC.map 43KB
example.map 42KB
320240DispMode.map 42KB
stm32_init.o 148KB
main.o 136KB
stm32f10x_rcc.o 74KB
stm32f10x_nvic.o 70KB
stm32f10x_gpio.o 59KB
stm32f10x_pwr.o 43KB
stm32f10x_exti.o 34KB
STM32F10x.o 6KB
cortexm3_macro.o 2KB
Object.Opt 3KB
共 113 条
- 1
- 2
资源评论
- xing123zhe2018-04-09亲测可用!! run ok
- 苍山那个小草2016-08-18中断唤醒是先执行中断在唤醒还是直接就唤醒了?
- qq_267569472019-01-15不错,写的很详细
- qgyyt2020-04-06可以用,谢谢
- Dream_6543212018-07-05可以用,谢谢
「已注销」
- 粉丝: 204
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 简单的SAR成像matlab代码
- cutcamera1699880194026.png
- 1999-2022年各省城镇居民人均消费支出数据(无缺失).xls
- 药店销售管理系统ssm(药品销售)【说明】资源来源网络以及部分开源社区、仅供参考与学习、项目不可商用、一切后果由使用者承担、若
- DHT11 (2)(2).apk
- 基于JSP毕业设计-学生管理系统-毕业设计.zip
- HTML+CSS+JS精品网页模板H111.rar
- 人工智能:python+OpenCV实现视频跟踪流水线缺陷检测识别
- 2005-2022年各省居民人均消费支出数据(无缺失).xlsx
- HTML+CSS+JS精品网页模板H110.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功