could we use TIM15

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
yingyan
Posts: 4
Joined: Mon Mar 11, 2013 1:59 am

could we use TIM15

Post 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
User avatar
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

Post 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
Post Reply