/** * @brief This function handles External lines 9 to 5 interrupt request. * @param None * @retval None */ void EXTI9_5_IRQHandler(void) { if(EXTI_GetITStatus(KEY_BUTTON_EXTI_LINE) != RESET) { /* Flush DR register and clear the USARTz RXNE flag */ USART_ReceiveData(USARTz); /* Enable the USARTz mute mode*/ USART_ReceiverWakeUpCmd(USARTz, ENABLE); /* Clear Key Button EXTI Line Pending Bit */ EXTI_ClearITPendingBit(KEY_BUTTON_EXTI_LINE); } }
/******************************************************************************* * 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) { if(EXTI_GetITStatus(EXTI_LINE_KEY_BUTTON) != RESET) { /* Flush DR register */ USART_ReceiveData(USART2); /* Clear the USART2 RXNE Flag */ USART_ClearFlag(USART2, USART_FLAG_RXNE); /* Enable the USART2 mute mode*/ USART_ReceiverWakeUpCmd(USART2, ENABLE); /* Clear Key Button EXTI Line Pending Bit */ EXTI_ClearITPendingBit(EXTI_LINE_KEY_BUTTON); } }