what is wrong with tim9 on stm32f4?

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

Moderator: RoccoMarco

Post Reply
User avatar
russian
Posts: 368
Joined: Mon Oct 29, 2012 3:17 am
Has thanked: 16 times
Been thanked: 14 times

what is wrong with tim9 on stm32f4?

Post by russian »

I am looking at the Timer feature comparison table of the f4 family - TIM9 has two channels, I know ChibiOS is not using all four channels anyway. The only feature missing is the Counter type - only "UP"...

Is this the reason TIM9 & TIM12 are not available in the ICU driver? Or is it because the driver is shared by the whole STM32 family?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: what is wrong with tim9 on stm32f4?

Post by Giovanni »

Hi,

Timers with only two comparators are not a problem, the ICU function could be implemented using the current code. It is mainly a testing issue, imagine having to test all combinations on all platforms.

The other problem is that some timers have their IRQs shared with other timers on some STM32 and that makes everything more complex. I prefer to not support timers sharing their IRQs and leave those "available to users".

Giovanni
Post Reply