Skip to main content
Uwe Bonnes
Chief
July 17, 2019
Solved

How to find out RCR timer availability?

  • July 17, 2019
  • 2 replies
  • 858 views

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.
Best answer by waclawek.jan

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
July 17, 2019

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
July 17, 2019

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