Loading...
 
Skip to main content

System Workbench for STM32


How do I enable double clock-speed for TIM2,3,4,5 with HAL

... there should be a way to double that.
The old way:
uint32_t tmpreg = 0;
tmpreg = RCC->DCKCFGR;
tmpreg |= RCC_DCKCFGR_TIMPRE;
RCC->DCKCFGR = tmpreg;

Is there a HAL way?

Thanks,

Cat