?? stm32f10x_it.c
字號:
* Description : This function handles DMA1 Channel 1 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel1_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel2_IRQHandler
* Description : This function handles DMA1 Channel 2 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel2_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel3_IRQHandler
* Description : This function handles DMA1 Channel 3 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel3_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel4_IRQHandler
* Description : This function handles DMA1 Channel 4 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel4_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel5_IRQHandler
* Description : This function handles DMA1 Channel 5 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel5_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel6_IRQHandler
* Description : This function handles DMA1 Channel 6 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel6_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : DMA1_Channel7_IRQHandler
* Description : This function handles DMA1 Channel 7 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void DMA1_Channel7_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : ADC1_2_IRQHandler
* Description : This function handles ADC1 and ADC2 global interrupts requests.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void ADC1_2_IRQHandler(void)
{
}
/*******************************************************************************
* 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
*******************************************************************************/
void USB_HP_CAN_TX_IRQHandler(void)
{
}
/*******************************************************************************
* 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
*******************************************************************************/
void USB_LP_CAN_RX0_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : CAN_RX1_IRQHandler
* Description : This function handles CAN RX1 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void CAN_RX1_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : CAN_SCE_IRQHandler
* Description : This function handles CAN SCE interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void CAN_SCE_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : EXTI9_5_IRQHandler
* Description : This function handles External lines 9 to 5 interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void EXTI9_5_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM1_BRK_IRQHandler
* Description : This function handles TIM1 Break interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM1_BRK_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM1_UP_IRQHandler
* Description : This function handles TIM1 overflow and update interrupt
* request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM1_UP_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM1_TRG_COM_IRQHandler
* Description : This function handles TIM1 Trigger and commutation interrupts
* requests.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM1_TRG_COM_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM1_CC_IRQHandler
* Description : This function handles TIM1 capture compare interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM1_CC_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM2_IRQHandler
* Description : This function handles TIM2 global interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM2_IRQHandler(void)
{
}
/*******************************************************************************
* Function Name : TIM3_IRQHandler
* Description : This function handles TIM3 global interrupt request.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void TIM3_IRQHandler(void)
{
/* If the user uses an another timer other than TIM3, he has to move all this
code to the specified TIMx_IRQHandler routine and change the define above
from TIM3 to the specified timer ex: TIM2 */
/* The output compare 1 interrupt event --------------------------------------*/
if ((TIMER_LCD->SR & 0x0002) != RESET)
{
/* Clear the CC1 flag */
TIMER_LCD->SR &= (u16)~0x0002;
#ifdef LCD_Use_Boost_Priority
/* Boost the LCD priority to 0 */
NVIC_SETPRIMASK();
#endif
/* All Segment lines = 0 ( all SegmentsLines_LQD_Port pins = 0 ) */
SegmentsLines_LQD_Port->ODR = (u16)~ALL_SEGMENT_LINES;
#ifdef USE_LCD_REF_PD_878
SegmentsLines_HQD_Port->ODR = (u16)~ALL_SEGMENT_LINES;
#endif
/* All Common lines = 0 */
CommonLines_Port->ODR &= ~ALL_COMMON_LINES;
/* Configure all Common lines on CommonLines port pins as Out_PP */
CommonLines_Port->PinsConfig |= ALL_COMMON_LINES_PP;
#ifdef LCD_Use_Boost_Priority
/* Return to the previous LCD priority interrupt */
NVIC_RESETPRIMASK();
#endif
}
/* The output compare 2 interrupt event --------------------------------------*/
else if ((TIMER_LCD->SR & 0x0004) != RESET)
{
/* Clear the CC2 flag */
TIMER_LCD->SR &= (u16)~0x0004;
/* CC2_1 phase --------------------------------------------------------------*/
if (CC2_1_Phase_Execute == 0)
{
#ifdef LCD_Use_Boost_Priority
/* Boost the LCD priority to 0 */
NVIC_SETPRIMASK();
#endif
/* Segments[lcdcr] to be turned on are loaded with the value 1 otherwise 0 */
SegmentsLines_LQD_Port->ODR =SegmentsValues_Lower_Quarter_Digits[lcdcr];
#ifdef USE_LCD_REF_PD_878
SegmentsLines_HQD_Port->ODR =SegmentsValues_Higher_Quarter_Digits[lcdcr];
#endif
/* Common_line[lcdcr] is set to low */
CommonLines_Port->BRR = CommonLine[lcdcr];
/* Other Common lines set to Vdd/2 */
CommonLines_Port->PinsConfig &= CommonLine_VDD_2[lcdcr];
/* Set Common_line[lcdcr] out push pull */
CommonLines_Port->PinsConfig |= CommonLine_OUT_PP[lcdcr];
#ifdef LCD_Use_Boost_Priority
/* Return to the previous LCD priority interrupt */
NVIC_RESETPRIMASK();
#endif
CC2_1_Phase_Execute++;
}
/* CC2_2 phase --------------------------------------------------------------*/
else
{
#ifdef LCD_Use_Boost_Priority
/* Boost the LCD priority to 0 */
NVIC_SETPRIMASK();
#endif
/* Segments(lcdcr) values are inverted */
SegmentsLines_LQD_Port->ODR = ~SegmentsValues_Lower_Quarter_Digits[lcdcr];
#ifdef USE_LCD_REF_PD_878
SegmentsLines_HQD_Port->ODR = ~SegmentsValues_Higher_Quarter_Digits[lcdcr];
#endif
/* Common_line[lcdcr] is set to high */
CommonLines_Port->BSRR = CommonLine[lcdcr];
/* Other Common lines set to Vdd/2 */
CommonLines_Port->PinsConfig &= CommonLine_VDD_2[lcdcr];
/* Other Common lines out push pull */
CommonLines_Port->PinsConfig |= CommonLine_OUT_PP[lcdcr];
#ifdef LCD_Use_Boost_Priority
/* Return to the previous LCD priority interrupt */
NVIC_RESETPRIMASK();
#endif
lcdcr++;
if(lcdcr>3)
{
lcdcr =0;
}
CC2_1_Phase_Execute = 0;
}
}
}
/*******************************************************************************
* Function Name : TIM4_IRQHandler
* Description : This function handles TIM4 global interrupt request.
* Input : None
* Output : None
* Return : None
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -