这是stm8s_it.c文件的部分代码:
[mw_shl_code=applescript,true]INTERRUPT_HANDLER(EXTI_PORTA_IRQHandler, 3)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
int i;
for(i=0;i<5;i++){
LED_Open();
delay(200);
LED_Close();
delay(400);
}
}
/**
* @brief External Interrupt PORTB Interrupt routine.
* @param None
* @retval None
*/
INTERRUPT_HANDLER(EXTI_PORTB_IRQHandler, 4)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
int i;
for(i=0;i<10;i++){
LED_Open();
delay(50);
LED_Close();
delay(100);
}
}
[/mw_shl_code]