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:
-
Definition at line 200 of file stm32l4xx_ll_crs.h.