找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1973|回复: 1
打印 上一主题 下一主题
收起左侧

STM32新建工程模板 代码下载

[复制链接]
跳转到指定楼层
楼主


单片机源程序如下:
  1. /**
  2.   ******************************************************************************
  3.   * @file    Project/STM32F10x_StdPeriph_Template/stm32f10x_it.c
  4.   * @author  MCD Application Team
  5.   * @version V3.5.0
  6.   * @date    08-April-2011
  7.   * @brief   Main Interrupt Service Routines.
  8.   *          This file provides template for all exceptions handler and
  9.   *          peripherals interrupt service routine.
  10.   ******************************************************************************
  11.   * @attention
  12.   *
  13.   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  14.   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  15.   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  16.   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  17.   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  18.   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  19.   *
  20.   * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
  21.   ******************************************************************************
  22.   */
  23. /* Includes ------------------------------------------------------------------*/
  24. #include "stm32f10x_it.h"
  25. /** @addtogroup STM32F10x_StdPeriph_Template
  26.   * @{
  27.   */
  28. /* Private typedef -----------------------------------------------------------*/
  29. /* Private define ------------------------------------------------------------*/
  30. /* Private macro -------------------------------------------------------------*/
  31. /* Private variables ---------------------------------------------------------*/
  32. /* Private function prototypes -----------------------------------------------*/
  33. /* Private functions ---------------------------------------------------------*/
  34. /******************************************************************************/
  35. /*            Cortex-M3 Processor Exceptions Handlers                         */
  36. /******************************************************************************/
  37. /**
  38.   * @brief  This function handles NMI exception.
  39.   * @param  None
  40.   * @retval None
  41.   */
  42. void NMI_Handler(void)
  43. {
  44. }
  45. /**
  46.   * @brief  This function handles Hard Fault exception.
  47.   * @param  None
  48.   * @retval None
  49.   */
  50. void HardFault_Handler(void)
  51. {
  52.   /* Go to infinite loop when Hard Fault exception occurs */
  53.   while (1)
  54.   {
  55.   }
  56. }
  57. /**
  58.   * @brief  This function handles Memory Manage exception.
  59.   * @param  None
  60.   * @retval None
  61.   */
  62. void MemManage_Handler(void)
  63. {
  64.   /* Go to infinite loop when Memory Manage exception occurs */
  65.   while (1)
  66.   {
  67.   }
  68. }
  69. /**
  70.   * @brief  This function handles Bus Fault exception.
  71.   * @param  None
  72.   * @retval None
  73.   */
  74. void BusFault_Handler(void)
  75. {
  76.   /* Go to infinite loop when Bus Fault exception occurs */
  77.   while (1)
  78.   {
  79.   }
  80. }
  81. /**
  82.   * @brief  This function handles Usage Fault exception.
  83.   * @param  None
  84.   * @retval None
  85.   */
  86. void UsageFault_Handler(void)
  87. {
  88.   /* Go to infinite loop when Usage Fault exception occurs */
  89.   while (1)
  90.   {
  91.   }
  92. }
  93. /**
  94.   * @brief  This function handles SVCall exception.
  95.   * @param  None
  96.   * @retval None
  97.   */
  98. void SVC_Handler(void)
  99. {
  100. }
  101. /**
  102.   * @brief  This function handles Debug Monitor exception.
  103.   * @param  None
  104.   * @retval None
  105.   */
  106. void DebugMon_Handler(void)
  107. {
  108. }
  109. /**
  110.   * @brief  This function handles PendSVC exception.
  111.   * @param  None
  112.   * @retval None
  113.   */
  114. void PendSV_Handler(void)
  115. {
  116. }
  117. /**
  118.   * @brief  This function handles SysTick Handler.
  119.   * @param  None
  120.   * @retval None
  121.   */
  122. void SysTick_Handler(void)
  123. {
  124. }
  125. /******************************************************************************/
  126. /*                 STM32F10x Peripherals Interrupt Handlers                   */
  127. /*  Add here the Interrupt Handler for the used peripheral(s) (PPP), for the  */
  128. /*  available peripheral interrupt handler's name please refer to the startup */
  129. /*  file (startup_stm32f10x_xx.s).                                            */
  130. /******************************************************************************/
  131. /**
  132.   * @brief  This function handles PPP interrupt request.
  133.   * @param  None
  134.   * @retval None
  135.   */
  136. /*void PPP_IRQHandler(void)
  137. {
  138. }*/
  139. /**
  140.   * @}
  141.   */

  142. /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
复制代码

所有资料51hei提供下载:
新建工程.7z (172.1 KB, 下载次数: 23)


评分

参与人数 1黑币 +50 收起 理由
admin + 50 共享资料的黑币奖励!

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:320751 发表于 2020-6-26 17:29 | 只看该作者
学习一下 谢谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表