cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out RCR timer availability?

Uwe Bonnes
Principal III

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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
Principal III

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