⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stm32f10x_it.c

📁 基于STM32的RTOS例程
💻 C
📖 第 1 页 / 共 2 页
字号:
/****************************Copyright (c)*********************************************                                     
*
*               (c) Copyright 2006-2008, hui lian. luo, china, zj. hz 
*                            All Rights Reserved
*
*							  深圳市英蓓特信息技术有限公司
*                            http://www.embedinfo.com
*                            博格达科技有限公司
*                            http://www.bogodtech.com                         
*
*---------- File Info ---------------------------------------------------------------
* File name: 		stm32f10x_it.c
* Created By: 		罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date: 	2007.11.28
* Descriptions: 	Main Interrupt Service Routines.
*                   -This file can be used to describe all the exceptions 
*                   -subroutines that may occur within user application.
*                   -When an interrupt happens, the software will branch 
*                   -automatically to the corresponding routine.
*                   -The following routines are all empty, user can write code 
*                   -for exceptions handlers and peripherals IRQ interrupts.
* Adviser: 			楼东武(professor)  浙江大学信电系
*
*---------- History Info -------------------------------------------------------------
* Version: 			Ver1.0
* Descriptions: 	Create Initilze file
*
*-------------------------------------------------------------------------------------
**************************************************************************************/

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x_it.h"
#include "config.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
vu32	wdg_clr_flag = 1;

/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

extern  vu16 ADC_SampleValue[2];

/*******************************************************************************
* Function Name : SysTickHandler
* Description   : This function handles SysTick Handler.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void SysTickHandler(void)
{
    OS_ENTER_CRITICAL(); /* Tell uC/OS-II that we are starting an ISR  */
    OSIntNesting++;
    OS_EXIT_CRITICAL();

    OSTimeTick();        /* Call uC/OS-II's OSTimeTick()               */

    OSIntExit();         /* Tell uC/OS-II that we are leaving the ISR  */
}

/*******************************************************************************
* Function Name : WWDG_IRQHandler
* Description   : This function handles WWDG interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/

void WWDG_IRQHandler(void)
{
	OS_ENTER_CRITICAL(); 	/* Tell uC/OS-II that we are starting an ISR */
    OSIntNesting++;
    OS_EXIT_CRITICAL();

	/* Update WWDG counter */
	if(wdg_clr_flag == 1)
	{
  		WWDG_SetCounter(0x7F);
		wdg_clr_flag = 0;
	}
	
  	/* Clear EWI flag */
  	WWDG_ClearFlag();

	OSIntExit();         /* Tell uC/OS-II that we are leaving the ISR  */
}

/*******************************************************************************
* Function Name : PVD_IRQHandler
* Description   : This function handles PVD interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void PVD_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : TAMPER_IRQHandler
* Description   : TThis function handles Tamper interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void TAMPER_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : RTC_IRQHandler
* Description   : This function handles RTC global interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void RTC_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : FLASH_IRQHandler
* Description   : This function handles Flash interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void FLASH_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : RCC_IRQHandler
* Description   : This function handles RCC interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void RCC_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : EXTI0_IRQHandler
* Description   : This function handles External interrupt Line 0 request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void EXTI0_IRQHandler(void)
{
 
}

/*******************************************************************************
* Function Name : EXTI1_IRQHandler
* Description   : This function handles External interrupt Line 1 request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void EXTI1_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : EXTI2_IRQHandler
* Description   : This function handles External interrupt Line 2 request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void EXTI2_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : EXTI3_IRQHandler
* Description   : This function handles External interrupt Line 3 request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void EXTI3_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : EXTI4_IRQHandler
* Description   : This function handles External interrupt Line 4 request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void EXTI4_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMAChannel1_IRQHandler
* Description   : This function handles DMA Stream 1 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel1_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : DMAChannel2_IRQHandler
* Description   : This function handles DMA Stream 2 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel2_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : DMAChannel3_IRQHandler
* Description   : This function handles DMA Stream 3 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel3_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : DMAChannel4_IRQHandler
* Description   : This function handles DMA Stream 4 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel4_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : DMAChannel5_IRQHandler
* Description   : This function handles DMA Stream 5 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel5_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMAChannel6_IRQHandler
* Description   : This function handles DMA Stream 6 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel6_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : DMAChannel7_IRQHandler
* Description   : This function handles DMA Stream 7 interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void DMAChannel7_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : ADC_IRQHandler
* Description   : This function handles ADC global interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void ADC_IRQHandler(void)
{
}

/*******************************************************************************
* Function Name : USB_HP_CAN_TX_IRQHandler
* Description   : This function handles USB High Priority or CAN TX interrupts 
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void USB_HP_CAN_TX_IRQHandler(void)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -