/** * @brief This function handles Tamper interrupt request. * @param None * @retval None */ void TAMPER_IRQHandler(void) { if(BKP_GetITStatus() != RESET) { /* Tamper detection event occured */ /* Check if Backup registers are cleared */ if(IsBackupRegReset() == 0) {/* OK, Backup registers are reset as expected */ /* Turn on LED3 */ STM_EVAL_LEDOn(LED3); } else {/* Backup registers are not reset */ /* Turn on LED4 */ STM_EVAL_LEDOn(LED4); } /* Clear Tamper pin interrupt pending bit */ BKP_ClearITPendingBit(); /* Clear Tamper pin Event(TE) pending flag */ BKP_ClearFlag(); } }
/******************************************************************************* * Function Name : TAMPER_IRQHandler * Description : This function handles Tamper interrupt request. * Input : None * Output : None * Return : None *******************************************************************************/ void TAMPER_IRQHandler(void) { BKP_TamperPinCmd(DISABLE); u8_TamperEvent=1; BKP_ClearITPendingBit(); BKP_ClearFlag(); //NVIC_ClearIRQChannelPendingBit(TAMPER_IRQn); }