Page 1 of 1

could we use TIM15

Posted: Thu Mar 28, 2013 8:29 pm
by yingyan
I use STM32F37 microcontroller,try to use TIM15 as input capture.
But only see ICUD1, 2, 3 ,4,5,8 ,that mean we can't use Tim15 as input capture.am I right.
Because we can't change design now ,could anybody give me a instruction how to add ICUD15.

Thank you very much

Re: could we use TIM15

Posted: Thu Mar 28, 2013 9:19 pm
by Giovanni
Hi,

You have to edit the files icu_lld.c and icu_lld.h, the driver is designed following strict patterns, just duplicate the parts of code of the other timers and adjust the differences. You need also to add the required macros to stm32_rcc.h and the ISR vector numbers to stm32_isr.h.

Giovanni