how dose function name connect to interrupt address
hi.
i am writing a code for Exti interrupt and i do that. But i get a qustion .
when we want to use interrupt , I mean when the interrupt happen , then cpu jump to that interrupt address and the function that we write on the IDE will run .
In fact , we write just interrupt name that it name is same with startup function name.
please watch my interrupt code in main:void EXTI9_5_IRQHandler (void){
GPIO_WriteBit(GPIOB, GPIO_Pin_0, Bit_SET);
while(1){
if( EXTI_GetITStatus(EXTI_Line7) == SET){
lcdPutInt(i);
i++;
delay_ms(200);
lcdClear();
}
}
}
and the same name in startup_stm32f10x_hd_vl.s :
DCD EXTI9_5_IRQHandler
PUBWEAK EXTI9_5_IRQHandler
SECTION .text:CODE:REORDER(1)
EXTI9_5_IRQHandler
B EXTI9_5_IRQHandler
how does the function and EXTI9_5_IRQHandler in startup can connect?
i need some explanation about
communication of this activity.
i use stm32f103re and IAR.
so thanks.
