Skip to main content
Uwe Bonnes
Chief
Jul 17, 2019 9:12 AM UTC
Solved

How to find out RCR timer availability?

Hello,

is there any way to find out by the CMSIS headers if some given Timer has the RCR (Repeat Count) Register? Is it possible to find out at runtime? Or do all TIM1/8/20 15/16/17 Timers do have the RCR register?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Jul 17, 2019 3:03 PM UTC

Hi Uwe,

In the CMSIS-mandated device headers found in the individual Cubes (i.e. not the older ones in SPL), it appears that the IS_TIM_REPETITION_COUNTER_INSTANCE() macro could indicate presence of RCR in a given timer.

Is this what you are looking for?

Jan

2 replies

waclawek.jan
waclawek.janBest answer
Super User
Jul 17, 2019 3:03 PM UTC

Hi Uwe,

In the CMSIS-mandated device headers found in the individual Cubes (i.e. not the older ones in SPL), it appears that the IS_TIM_REPETITION_COUNTER_INSTANCE() macro could indicate presence of RCR in a given timer.

Is this what you are looking for?

Jan

Uwe Bonnes
Chief
Jul 17, 2019 3:22 PM UTC

Thanks, that looks good. I should have searched for REPETITION and not RCR :)