STM32, libopencm3 and interrupt service routines

Thread Starter

hrs

Joined Jun 13, 2014
525
Hi,

I'm trying to understand how/where ISRs are triggered in libopencm3. As in this example:
https://github.com/libopencm3/libop...amples/stm32/f1/other/timer_interrupt/timer.c
It defines void tim2_isr(void) which is said to be defined as the default handler. When I
git clone https://github.com/libopencm3/libopencm3, i.e. make a local copy and then
grep -r "tim2_isr" . , that is a recursive search through the repository for "tim2_isr" I find nothing.
How is an interrupt generated by TIM2 linked to a function called "tim2_isr()" and where can I see this link?
 

Thread Starter

hrs

Joined Jun 13, 2014
525
Thanks. I think it's dynamically generated through some "dispatch" mechanism somehow. I'll just take it on faith for now.
 

Thread Starter

hrs

Joined Jun 13, 2014
525
Doh, all I had to do was run make. Then all of the definitions per post #2 are generated.
 
Top