📄 stm32f10x_it.c
字号:
/*******************************************************************************
* Function Name : EXTI2_IRQHandler
* Description : This function handles External interrupt Line 2 request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(24) EXTI2_IRQHandler(void)
#else
void EXTI2_IRQHandler(void)
#endif
{
EXTI_ClearITPendingBit(EXTI_Line2);
}
/*******************************************************************************
* Function Name : EXTI3_IRQHandler
* Description : This function handles External interrupt Line 3 request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(25) EXTI3_IRQHandler(void)
#else
void EXTI3_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : EXTI4_IRQHandler
* Description : This function handles External interrupt Line 4 request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(26) EXTI4_IRQHandler(void)
#else
void EXTI4_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel1_IRQHandler
* Description : This function handles DMA Stream 1 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(27) DMAChannel1_IRQHandler(void)
#else
void DMAChannel1_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel2_IRQHandler
* Description : This function handles DMA Stream 2 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(28) DMAChannel2_IRQHandler(void)
#else
void DMAChannel2_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel3_IRQHandler
* Description : This function handles DMA Stream 3 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(29) DMAChannel3_IRQHandler(void)
#else
void DMAChannel3_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel4_IRQHandler
* Description : This function handles DMA Stream 4 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(30) DMAChannel4_IRQHandler(void)
#else
void DMAChannel4_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel5_IRQHandler
* Description : This function handles DMA Stream 5 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(31) DMAChannel5_IRQHandler(void)
#else
void DMAChannel5_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel6_IRQHandler
* Description : This function handles DMA Stream 6 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(32) DMAChannel6_IRQHandler(void)
#else
void DMAChannel6_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : DMAChannel7_IRQHandler
* Description : This function handles DMA Stream 7 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(33) DMAChannel7_IRQHandler(void)
#else
void DMAChannel7_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : ADC_IRQHandler
* Description : This function handles ADC global interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(34) ADC_IRQHandler(void)
#else
void ADC_IRQHandler(void)
#endif
{
/* Clear ADC1 JEOC pending interrupt bit */
ADC_ClearITPendingBit(ADC1, ADC_IT_EOC);
}
/*******************************************************************************
* Function Name : USB_HP_CAN_TX_IRQHandler
* Description : This function handles USB High Priority or CAN TX interrupts
* requests.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(35) USB_HP_CAN_TX_IRQHandler(void)
#else
void USB_HP_CAN_TX_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : USB_LP_CAN_RX0_IRQHandler
* Description : This function handles USB Low Priority or CAN RX0 interrupts
* requests.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(36) USB_LP_CAN_RX0_IRQHandler(void)
#else
void USB_LP_CAN_RX0_IRQHandler(void)
#endif
{
//RemoteRoutine();
if(GetISTR() != 0)
USB_Istr();
else
CAN_isr();
}
/*******************************************************************************
* Function Name : CAN_RX1_IRQHandler
* Description : This function handles CAN RX1 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(37) CAN_RX1_IRQHandler(void)
#else
void CAN_RX1_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : CAN_SCE_IRQHandler
* Description : This function handles CAN SCE interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(38) CAN_SCE_IRQHandler(void)
#else
void CAN_SCE_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : EXTI9_5_IRQHandler
* Description : This function handles External lines 9 to 5 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(39) EXTI9_5_IRQHandler(void)
#else
void EXTI9_5_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : TIM1_BRK_IRQHandler
* Description : This function handles TIM1 Break interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(40) TIM1_BRK_IRQHandler(void)
#else
void TIM1_BRK_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : TIM1_UP_IRQHandler
* Description : This function handles TIM1 overflow and update interrupt
* request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(41) TIM1_UP_IRQHandler(void)
#else
void TIM1_UP_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : TIM1_TRG_COM_IRQHandler
* Description : This function handles TIM1 Trigger and commutation interrupts
* requests.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(42) TIM1_TRG_CCUP_IRQHandler(void)
#else
void TIM1_TRG_COM_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : TIM1_CC_IRQHandler
* Description : This function handles TIM1 capture compare interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(43) TIM1_CC_IRQHandler(void)
#else
void TIM1_CC_IRQHandler(void)
#endif
{
}
/*******************************************************************************
* Function Name : TIM2_IRQHandler
* Description : This function handles TIM2 global interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
#ifdef TaskingVXtoolset
void __interrupt(44) TIM2_IRQHandler(void)
#else
void TIM2_IRQHandler(void)
#endif
{
u32 wait_temp;
u16 wait_rc = 0;
u16 i,j;
/*RC Record Enabled*/
if(UIR_State == RC_enable)
{
if (TIM_GetITStatus(TIM2, TIM_IT_CC3) != RESET)
{
TIM_SetCompare3(TIM2, 882);
switch (CountMode)
{
case 0:
break;
case 0x01:
/*first start bit*/
if(Counter.ValueA >=20)
{
CountMode = 0x02;
Counter.ValueA = 0x00;
uart_com_buff.data[uart_com_buff.pos++] = 0x01;
uart_com_buff.bit++;
}
else
{ /*no valid first start bit*/
break;
}
break;
case 2:
/*first part of Bit*/
CountMode = 0x03;
break;
case 3:
/*second part of Bit*/
if((Counter.ValueA <= 15) & (Counter.ValueB >= 20))
{
uart_com_buff.data[uart_com_buff.pos++] = 0x01;
CountMode = 0x02;
uart_com_buff.bit++;
}
else if((Counter.ValueA >= 20) & (Counter.ValueB <= 15))
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -