STM32L443xx HAL User Manual
Defines
Exported_Macros_Calculate_Reload
CRS Exported Macros

Defines

#define __LL_CRS_CALC_CALCULATE_RELOADVALUE(__FTARGET__, __FSYNC__)   (((__FTARGET__) / (__FSYNC__)) - 1U)
 Macro to calculate reload value to be set in CRS register according to target and sync frequencies.

Define Documentation

#define __LL_CRS_CALC_CALCULATE_RELOADVALUE (   __FTARGET__,
  __FSYNC__ 
)    (((__FTARGET__) / (__FSYNC__)) - 1U)

Macro to calculate reload value to be set in CRS register according to target and sync frequencies.

Note:
The RELOAD value should be selected according to the ratio between the target frequency and the frequency of the synchronization source after prescaling. It is then decreased by one in order to reach the expected synchronization on the zero value. The formula is the following: RELOAD = (fTARGET / fSYNC) -1
Parameters:
__FTARGET__Target frequency (value in Hz)
__FSYNC__Synchronization signal frequency (value in Hz)
Return values:
Reloadvalue (in Hz)

Definition at line 200 of file stm32l4xx_ll_crs.h.