Files
4StepperMotorsDriveBySTM32F…/USER/stm32f10x_it.c
loveclear 16f7d3a693 移植UCOSII系统到STM32上
移植UCOSII系统到STM32上
2018-08-07 13:50:57 +08:00

117 lines
3.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
*
* Copyright 2018程豪琪哈尔滨工业大学
* All Rights Reserved.
*/
/*
* *******************************郑重声明****************************************
* 该程序为本人所写,付出了大量的精力,现将其公开出来供大家参考学习;
* 任何个人和组织不得未经授权将此程序转载,或用于商业行为!
*
* 由于本人水平有限,程序难免出现错误,可以通过下面的联系方式联系本人
* 谢谢你的指正!
*
* 邮箱18s153717@stu.hit.edu.cn
* githubhttps://github.com/clearcumt
* 博客https://www.cnblogs.com/loveclear/
*
* ******************************************************************************
*/
/**
******************************************************************************
* @file GPIO/IOToggle/stm32f10x_it.c
* @author MCD Application Team
* @version V3.5.0
* @date 08-April-2011
* @brief Main Interrupt Service Routines.
* This file provides template for all exceptions handler and peripherals
* interrupt service routine.
******************************************************************************
* @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.
*
* <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_it.h"
// 如果使用了UCOSII系统置1
#define USE_UCOSII 0
void NMI_Handler(void)
{
}
void HardFault_Handler(void)
{
/* Go to infinite loop when Hard Fault exception occurs */
while (1)
{
}
}
void MemManage_Handler(void)
{
/* Go to infinite loop when Memory Manage exception occurs */
while (1)
{
}
}
void BusFault_Handler(void)
{
/* Go to infinite loop when Bus Fault exception occurs */
while (1)
{
}
}
void UsageFault_Handler(void)
{
/* Go to infinite loop when Usage Fault exception occurs */
while (1)
{
}
}
void SVC_Handler(void)
{
}
void DebugMon_Handler(void)
{
}
#if USE_UCOSII
// 如果没有使用 UCOSII 操作系统,才会编译下面的中断服务子程序
#else
// 使用 UCOSII 系统时PendSV_Handler已经在 os-cpu_a.asm 文件中定义了
//void PendSV_Handler(void)
//{
//}
void SysTick_Handler(void)
{
}
#endif
/******************************************************************************/
/* STM32F10x Peripherals Interrupt Handlers */
/* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
/* available peripheral interrupt handler's name please refer to the startup */
/* file (startup_stm32f10x_xx.s). */
/******************************************************************************/