pmsm_stm32/04 STM32电机控制程序/STM32_BLDC_PWM_Hall/Project/stm32f10x_it.c

41 lines
953 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//############################################################
// FILE: stm32f10x_it.c
// Created on: 2017年1月15日
// Author: XQ
// summary: 部分中断控制
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//版权所有,盗版必究
//DSP/STM32电机控制开发板
//硕历电子
//网址: https://shuolidianzi.taobao.com
//Author-QQ: 616264123
//电机控制QQ群314306105
//############################################################
#include "stm32f10x_it.h"
#include "stm32f10x.h"
#include "GPIO_int.h"
#include "Timer.h"
#include "ADC_int.h"
#include "Tim1_PWM.h"
extern TaskTime TaskTimePare;
void SysTick_Handler(void)
{
TaskTimePare.IntClock_10ms=1;
}
void TIM1_BRK_IRQHandler(void) // 紧急停机中断
{
Stop_Motor( );
TIM_ClearITPendingBit(TIM1, TIM_IT_Break);
}
//===========================================================================
// No more.
//===========================================================================