/** * @brief This function handles the LVD Output interrupt request. * @param None * @retval None */ void LVD_IRQHandler(void) { if(EXTI_GetIntBitState(EXTI_LINE16) != RESET) { GPIO_WriteBit(LED1_GPIO_PORT, LED1_PIN, (BitState)((1-GPIO_ReadOutputBit(LED1_GPIO_PORT, LED1_PIN)))); EXTI_ClearIntBitState(EXTI_LINE16); } }
void EXTI4_15_IRQHandler(void) { if (EXTI_GetIntBitState(CHARGING_EXTILINE) != RESET) { if (check_charging() == CHARGING && get_charger_plug_flag() == CHARGER_UNPLUGGED) { set_charger_plug_flag(); reboot_system(SUCCESS); } EXTI_ClearIntBitState(CHARGING_EXTILINE); } }
/** * @brief This function handles EXTI4_15 interrupt request. * @param None * @retval None */ void EXTI4_15_IRQHandler(void) { /* Get the button interrupt bit state */ if(EXTI_GetIntBitState(EXTI_LINE7) != RESET) { ByteNumber = 2; CEC_SendData(0x12); SendBuffer = TransmitBuffer1; CEC_StartOfMessage(); EXTI_ClearIntBitState(EXTI_LINE7); } /* Get the button interrupt bit state */ else if(EXTI_GetIntBitState(EXTI_LINE13) != RESET) { ByteNumber = 2; CEC_SendData(0x12); SendBuffer = TransmitBuffer2; CEC_StartOfMessage(); EXTI_ClearIntBitState(EXTI_LINE13); } }