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 195 of file stm32h7xx_ll_crs.h.