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
could we use TIM15
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: could we use TIM15
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
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