stm32f10x_it.c

来自「这个原例子是从网上收集的」· C语言 代码 · 共 670 行 · 第 1/2 页

C
670
字号
{
}

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

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

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

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

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

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

/*******************************************************************************
* Function Name : TIM1_TRG_COM_IRQHandler
* Description   : This function handles TIM1 Trigger and Commutation interrupts 
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
void TIM1_TRG_COM_IRQHandler(void)
{
}

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

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

}

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

}

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

}

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

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

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

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

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

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

/*******************************************************************************
* Function Name : USART1_IRQHandler
* Description   : This function handles USART1 global interrupt request.
* Input         : None
* Return        : None
* Created By	: 罗辉联(armgcc@foxmail.com   lhlzjut@hotmail.com) 	
* Created date	: 2007.11.28
*-------------------------------------------------------------------------------
*******************************************************************************/
u8 RxBuffer[RxBufferSize];
u8 RxCounter = 0; 

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

	if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET)
	{
		/* Read one byte from the receive data register */
		RxBuffer[RxCounter++] = (USART_ReceiveData(USART1) & 0x7F);         
		
		/* Clear the USART1 Receive interrupt */
		USART_ClearITPendingBit(USART1, USART_IT_RXNE);
		
		if(RxCounter == RxBufferSize)
		{  
		  	/* Disable the USART Receive interrupt */
		  	USART_ITConfig(USART1, USART_IT_RXNE, DISABLE);
		 	RxCounter = 0;
		  	OSSemPost(ComSem);
		}
	}

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

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

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

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

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

/****************** http://www.bogodtech.com *******End of file ******************/

⌨️ 快捷键说明

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