首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

STM32F103C8新建寄存器工程模板.zip

硬件开发 415.02KB 17 需要积分: 1
立即下载

资源介绍:

这是采用寄存器方式新建的一个keil工程模版。 用于学习接下来的寄存器编程。 芯片采用的 STM32F103C8。
/** ****************************************************************************** * @file system_stm32f10x.c * @author MCD Application Team * @version V3.5.0 * @date 11-March-2011 * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. * * 1. This file provides two functions and one global variable to be called from * user application: * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier * factors, AHB/APBx prescalers and Flash settings). * This function is called at startup just after reset and * before branch to main program. This call is made inside * the "startup_stm32f10x_xx.s" file. * * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used * by the user application to setup the SysTick * timer or configure other parameters. * * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed * during program execution. * * 2. After each device reset the HSI (8 MHz) is used as system clock source. * Then SystemInit() function is called, in "startup_stm32f10x_xx.s" file, to * configure the system clock before to branch to main program. * * 3. If the system clock source selected by user fails to startup, the SystemInit() * function will do nothing and HSI still used as system clock source. User can * add some code to deal with this issue inside the SetSysClock() function. * * 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz, depedning on * the product used), refer to "HSE_VALUE" define in "stm32f10x.h" file. * When HSE is used as system clock source, directly or through PLL, and you * are using different crystal you have to adapt the HSE value to your own * configuration. * ****************************************************************************** * @attention * * 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 2011 STMicroelectronics

****************************************************************************** */ /** @addtogroup CMSIS * @{ */ /** @addtogroup stm32f10x_system * @{ */ /** @addtogroup STM32F10x_System_Private_Includes * @{ */ #include "stm32f10x.h" /** * @} */ /** @addtogroup STM32F10x_System_Private_TypesDefinitions * @{ */ /** * @} */ /** @addtogroup STM32F10x_System_Private_Defines * @{ */ /*!< Uncomment the line corresponding to the desired System clock (SYSCLK) frequency (after reset the HSI is used as SYSCLK source) IMPORTANT NOTE: ============== 1. After each device reset the HSI is used as System clock source. 2. Please make sure that the selected System clock doesn't exceed your device's maximum frequency. 3. If none of the define below is enabled, the HSI is used as System clock source. 4. The System clock configuration functions provided within this file assume that: - For Low, Medium and High density Value line devices an external 8MHz crystal is used to drive the System clock. - For Low, Medium and High density devices an external 8MHz crystal is used to drive the System clock. - For Connectivity line devices an external 25MHz crystal is used to drive the System clock. If you are using different crystal you have to adapt those functions accordingly. */ #if defined (STM32F10X_LD_VL) || (defined STM32F10X_MD_VL) || (defined STM32F10X_HD_VL) /* #define SYSCLK_FREQ_HSE HSE_VALUE */ #define SYSCLK_FREQ_24MHz 24000000 #else /* #define SYSCLK_FREQ_HSE HSE_VALUE */ /* #define SYSCLK_FREQ_24MHz 24000000 */ /* #define SYSCLK_FREQ_36MHz 36000000 */ /* #define SYSCLK_FREQ_48MHz 48000000 */ /* #define SYSCLK_FREQ_56MHz 56000000 */ #define SYSCLK_FREQ_72MHz 72000000 #endif /*!< Uncomment the following line if you need to use external SRAM mounted on STM3210E-EVAL board (STM32 High density and XL-density devices) or on STM32100E-EVAL board (STM32 High-density value line devices) as data memory */ #if defined (STM32F10X_HD) || (defined STM32F10X_XL) || (defined STM32F10X_HD_VL) /* #define DATA_IN_ExtSRAM */ #endif /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ /* #define VECT_TAB_SRAM */ #define VECT_TAB_OFFSET 0x0 /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ /** * @} */ /** @addtogroup STM32F10x_System_Private_Macros * @{ */ /** * @} */ /** @addtogroup STM32F10x_System_Private_Variables * @{ */ /******************************************************************************* * Clock Definitions *******************************************************************************/ #ifdef SYSCLK_FREQ_HSE uint32_t SystemCoreClock = SYSCLK_FREQ_HSE; /*!< System Clock Frequency (Core Clock) */ #elif defined SYSCLK_FREQ_24MHz uint32_t SystemCoreClock = SYSCLK_FREQ_24MHz; /*!< System Clock Frequency (Core Clock) */ #elif defined SYSCLK_FREQ_36MHz uint32_t SystemCoreClock = SYSCLK_FREQ_36MHz; /*!< System Clock Frequency (Core Clock) */ #elif defined SYSCLK_FREQ_48MHz uint32_t SystemCoreClock = SYSCLK_FREQ_48MHz; /*!< System Clock Frequency (Core Clock) */ #elif defined SYSCLK_FREQ_56MHz uint32_t SystemCoreClock = SYSCLK_FREQ_56MHz; /*!< System Clock Frequency (Core Clock) */ #elif defined SYSCLK_FREQ_72MHz uint32_t SystemCoreClock = SYSCLK_FREQ_72MHz; /*!< System Clock Frequency (Core Clock) */ #else /*!< HSI Selected as System Clock source */ uint32_t SystemCoreClock = HSI_VALUE; /*!< System Clock Frequency (Core Clock) */ #endif __I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; /** * @} */ /** @addtogroup STM32F10x_System_Private_FunctionPrototypes * @{ */ static void SetSysClock(void); #ifdef SYSCLK_FREQ_HSE static void SetSysClockToHSE(void); #elif defined SYSCLK_FREQ_24MHz static void SetSysClockTo24(void); #elif defined SYSCLK_FREQ_36MHz static void SetSysClockTo36(void); #elif defined SYSCLK_FREQ_48MHz static void SetSysClockTo48(void); #elif defined SYSCLK_FREQ_56MHz static void SetSysClockTo56(void); #elif defined SYSCLK_FREQ_72MHz static void SetSysClockTo72(void); #endif #ifdef DATA_IN_ExtSRAM static void SystemInit_ExtMemCtl(void); #endif /* DATA_IN_ExtSRAM */ /** * @} */ /** @addtogroup STM32F10x_System_Private_Functions * @{ */ /** * @brief 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. * @param None * @retval None */ void SystemInit (void) { /* Reset the RCC clock configuration to the default reset state(for debug purpose) */ /* Set HSION bit *

资源文件列表:

01 STM32F103C8新建寄存器工程模板.zip 大约有39个文件
  1. 01 STM32F103C8新建工程模块/
  2. 01 STM32F103C8新建工程模块/OBJECT/
  3. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.axf 233.02KB
  4. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.build_log.htm 1.3KB
  5. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.hex 4.4KB
  6. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.htm 26.63KB
  7. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.lnp 399B
  8. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.map 23.27KB
  9. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD.sct 479B
  10. 01 STM32F103C8新建工程模块/OBJECT/STM32_MD_STM32F103.dep 1.96KB
  11. 01 STM32F103C8新建工程模块/OBJECT/core_cm3.crf 3.85KB
  12. 01 STM32F103C8新建工程模块/OBJECT/core_cm3.d 107B
  13. 01 STM32F103C8新建工程模块/OBJECT/core_cm3.o 10.79KB
  14. 01 STM32F103C8新建工程模块/OBJECT/main.crf 227.11KB
  15. 01 STM32F103C8新建工程模块/OBJECT/main.d 404B
  16. 01 STM32F103C8新建工程模块/OBJECT/main.o 235.63KB
  17. 01 STM32F103C8新建工程模块/OBJECT/startup_stm32f10x_md.d 64B
  18. 01 STM32F103C8新建工程模块/OBJECT/startup_stm32f10x_md.lst 39.59KB
  19. 01 STM32F103C8新建工程模块/OBJECT/startup_stm32f10x_md.o 5.74KB
  20. 01 STM32F103C8新建工程模块/OBJECT/system_stm32f10x.crf 217KB
  21. 01 STM32F103C8新建工程模块/OBJECT/system_stm32f10x.d 284B
  22. 01 STM32F103C8新建工程模块/OBJECT/system_stm32f10x.o 228KB
  23. 01 STM32F103C8新建工程模块/STM32_MD.build_log.htm 255B
  24. 01 STM32F103C8新建工程模块/STM32_MD.uvgui.11266 88.51KB
  25. 01 STM32F103C8新建工程模块/STM32_MD.uvgui.Administrator 70.74KB
  26. 01 STM32F103C8新建工程模块/STM32_MD.uvopt 7.08KB
  27. 01 STM32F103C8新建工程模块/STM32_MD.uvproj 16.07KB
  28. 01 STM32F103C8新建工程模块/STM32_MD_LED.dep 1.88KB
  29. 01 STM32F103C8新建工程模块/STM32_MD_uvproj.bak
  30. 01 STM32F103C8新建工程模块/SYSLIB/
  31. 01 STM32F103C8新建工程模块/SYSLIB/core_cm3.c 16.87KB
  32. 01 STM32F103C8新建工程模块/SYSLIB/core_cm3.h 83.71KB
  33. 01 STM32F103C8新建工程模块/SYSLIB/startup_stm32f10x_md.s 12.47KB
  34. 01 STM32F103C8新建工程模块/SYSLIB/stm32f10x.h 619.08KB
  35. 01 STM32F103C8新建工程模块/SYSLIB/system_stm32f10x.c 35.7KB
  36. 01 STM32F103C8新建工程模块/SYSLIB/system_stm32f10x.h 2.04KB
  37. 01 STM32F103C8新建工程模块/SYSTEM/
  38. 01 STM32F103C8新建工程模块/USER/
  39. 01 STM32F103C8新建工程模块/USER/main.c 4.79KB
0评论
提交 加载更多评论
其他资源 崖山YashanDB数据库系统YCA认证教材全套
第1课时:YashanDB基础介绍.pdf 第2课时:YashanDB安装部署.pdf 第3课时:YashanDBSQL语言(基础篇).pdf 第4课时:YashanDB体系结构.pdf 第5课时:YashanDB实例管理.pdf 第6课时:YashanDB存储管理.pdf 第7课时:YashanDB文件管理.pdf 第8课时:YashanDB对象管理(基础篇).pdf 第9课时:YashanDB数据字典和动态性能视图.pdf 第10课时:YashanDB应用开发.pdf
ISO 15118最新的全集
原文版本,支持复制,不是图片扫描版 全文可复制可以转为word,是纯官方源文档,可以自己进行参考和查看
基于Java Web的传智书城项目-完整项目包
系统实现 4.1系统实现过程 4.1.1项目环境搭建 在开发功能模块之前,先进行项目环境及项目框架的搭建。 (1)确定项目开发环境 操作系统:Windows XP、Windows7或更高的Windows版本。Web 服务器:Tomcat 8.0。Java开发包:JDK1.8。数据库:MySQL8.0.33。开发工具:Eclipse Java EE IDE for Web Developers。浏览器:1E8.0或更高版本。 (2)创建数据库表 在MySQL数据库中创建一个名称为itcaststore的数据库,并根据表结构在itcaststore数据库中创建相应的表。 (3)创建项目,引入JAR包 在Eclipse 中创建一个名称为itcaststore的Dynamic WebProject,将项目所需JAR包导入到项目的WEB-INF/lib文件夹下。 本项目使用C3p0 数据源连接数据库,需要C3pO数据源的JAR包。项目的JSP页面使用了JSTL标签库,需要jstl.jar和standard.jar 两个包。项目中使用DBUtils工具处理数据的持久化操作。
基于Java Web的传智书城项目-完整项目包 基于Java Web的传智书城项目-完整项目包 基于Java Web的传智书城项目-完整项目包
前端开发过程中的代码规范
通过几年的工作经验,和参考一些大厂规范以及一些开源的优秀源码,整理了一些前端代码规范,帮助我们后续可以写出更好维护的代码。
Screenfull 全屏组件(VUE2 后台)
Screenfull 全屏组件(VUE2 后台)
c#.Net编写的鼠标连点器
玩一些小游戏时候写的,支持单点点击,多点来回点击,频率次数可以任意设置,使用过程中想要中止请按ecs退出。
Bulk Rename Utility:一个可以自定义规则批量重命名文件的工具
Bulk Rename Utility是一款Windows平台上的免费文件重命名工具,可以通过简单易用的界面批量重命名文件和文件夹。 Bulk Rename Utility可以根据自定义规则批量重命名文件,支持添加前缀、后缀、替换文字、修改文件日期等功能,提高工作效率。
7.0.0deNODE -SASS
AGESDGSDFGS
7.0.0deNODE
-SASS 7.0.0deNODE
-SASS