Writing stm32f10x_it.c

Publisher:采菊东篱下Latest update time:2016-09-25 Source: eefocusKeywords:stm32f10x_it.c Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
From the name, this file contains functions related to interrupts.
Indeed, the interrupt service function should be placed here.
but 
This also contains some other abnormal interrupt information.
/**
  *************************************************** ******************************
  * @file USART/Printf/stm32f10x_it.c 
  * @author MCD Application Team
  * @version V3.1.0
  * @date 06/19/2009
  * @brief Main Interrupt Service Routines.
  * This file provides template for all exceptions handler and peripherals
  * interrupt service routine.
  *************************************************** ******************************
  * @copy
  *
  * 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 2009 STMicroelectronics

  */ 
#include "stm32f10x_it.h"
#include "stm32f10x_exti.h"
/**
  * @brief This function handles NMI exception.
  * @param None
  * @retval None
  */
void NMI_Handler(void)
{
}
 
/**
  * @brief This function handles Hard Fault exception.
  * @param None
  * @retval None
  */
void HardFault_Handler(void)
{
  /* Go to infinite loop when Hard Fault exception occurs */
  while (1)
  {
  }
}
 
/**
  * @brief This function handles Memory Manage exception.
  * @param None
  * @retval None
  */
void MemManage_Handler(void)
{
  /* Go to infinite loop when Memory Manage exception occurs */
  while (1)
  {
  }
}
 
/**
  * @brief This function handles Bus Fault exception.
  * @param None
  * @retval None
  */
void BusFault_Handler(void)
{
  /* Go to infinite loop when Bus Fault exception occurs */
  while (1)
  {
  }
}
 
/**
  * @brief This function handles Usage Fault exception.
  * @param None
  * @retval None
  */
void UsageFault_Handler(void)
{
  /* Go to infinite loop when Usage Fault exception occurs */
  while (1)
  {
  }
}
 
/**
  * @brief This function handles SVCall exception.
  * @param None
  * @retval None
  */
void SVC_Handler(void)
{
}
 
/**
  * @brief This function handles Debug Monitor exception.
  * @param None
  * @retval None
  */
void DebugMon_Handler(void)
{
}
 
/**
  * @brief This function handles PendSV_Handler exception.
  * @param None
  * @retval None
  */
void PendSV_Handler(void)
{
}
 
/**
  * @brief This function handles SysTick Handler.
  * @param None
  * @retval None
  */
extern void SysTick_ISR(void);
/*void SysTick_Handler(void)
{
if(net_time05++>=1000)
{ //0.5 seconds overflow flag
    net_time05=0;
    net_timeover05=1;
}  
if(net_time10++>=20000)
{ //10 seconds overflow flag
    net_time10=0;
    net_timeover10=1;
}*/
 
 
/****************************************************** ***************************
* Name: void EXTI1_IRQHandler(void)
* Function: ENC28J60 receives the EXTI1 interrupt handler
* Entry parameters: None
* Export parameters: None
* illustrate:
* Calling method: None 
*************************************************** ******************************/
void EXTI1_IRQHandler(void)
{
  /*if(EXTI_GetITStatus(EXTI_Line1) != RESET) //Determine if a key is pressed
  {
ETH_INT=1; //Set the receiving completion flag
    EXTI_ClearITPendingBit(EXTI_Line1); //Clear interrupt request flag
  }*/
}
 
 
void EXTI9_5_IRQHandler(void)
{
  if(EXTI_GetITStatus(EXTI_Line6) != RESET)
  {
ETH_INT=1; //Set the receiving completion flag
    EXTI_ClearITPendingBit(EXTI_Line6); //Clear interrupt request flag
  }
}
 
 
/****************************************************** *******************************/
/* 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). */
/****************************************************** *******************************/
 
/**
  * @brief This function handles PPP interrupt request.
  * @param None
  * @retval None
  */
/*void PPP_IRQHandler(void)
{
}*/
 
/**
  * @}
  */ 
 
/**
  * @}
  */ 
 
/********************** (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/

Keywords:stm32f10x_it.c Reference address:Writing stm32f10x_it.c

Previous article:How to choose the startup file for stm32 small capacity, medium capacity and large capacity products
Next article:STM32 library file analysis supplement

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号