20#ifndef STM32H7xx_LL_CRS_H
21#define STM32H7xx_LL_CRS_H
55#define LL_CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF
56#define LL_CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF
57#define LL_CRS_ISR_ERRF CRS_ISR_ERRF
58#define LL_CRS_ISR_ESYNCF CRS_ISR_ESYNCF
59#define LL_CRS_ISR_SYNCERR CRS_ISR_SYNCERR
60#define LL_CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS
61#define LL_CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF
70#define LL_CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE
71#define LL_CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE
72#define LL_CRS_CR_ERRIE CRS_CR_ERRIE
73#define LL_CRS_CR_ESYNCIE CRS_CR_ESYNCIE
81#define LL_CRS_SYNC_DIV_1 0x00000000U
82#define LL_CRS_SYNC_DIV_2 CRS_CFGR_SYNCDIV_0
83#define LL_CRS_SYNC_DIV_4 CRS_CFGR_SYNCDIV_1
84#define LL_CRS_SYNC_DIV_8 (CRS_CFGR_SYNCDIV_1 | CRS_CFGR_SYNCDIV_0)
85#define LL_CRS_SYNC_DIV_16 CRS_CFGR_SYNCDIV_2
86#define LL_CRS_SYNC_DIV_32 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_0)
87#define LL_CRS_SYNC_DIV_64 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_1)
88#define LL_CRS_SYNC_DIV_128 CRS_CFGR_SYNCDIV
96#define LL_CRS_SYNC_SOURCE_GPIO 0x00000000U
97#define LL_CRS_SYNC_SOURCE_LSE CRS_CFGR_SYNCSRC_0
98#define LL_CRS_SYNC_SOURCE_USB CRS_CFGR_SYNCSRC_1
106#define LL_CRS_SYNC_POLARITY_RISING 0x00000000U
107#define LL_CRS_SYNC_POLARITY_FALLING CRS_CFGR_SYNCPOL
115#define LL_CRS_FREQ_ERROR_DIR_UP 0x00000000U
116#define LL_CRS_FREQ_ERROR_DIR_DOWN CRS_ISR_FEDIR
129#define LL_CRS_RELOADVALUE_DEFAULT 0x0000BB7FU
134#define LL_CRS_ERRORLIMIT_DEFAULT 0x00000022U
142#define LL_CRS_HSI48CALIBRATION_DEFAULT 0x00000020U
167#define LL_CRS_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
175#define LL_CRS_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
195#define __LL_CRS_CALC_CALCULATE_RELOADVALUE(__FTARGET__, __FSYNC__) (((__FTARGET__) / (__FSYNC__)) - 1U)
450__STATIC_INLINE void LL_CRS_ConfigSynchronization(uint32_t HSI48CalibrationValue, uint32_t ErrorLimitValue, uint32_t ReloadValue, uint32_t Settings)
750#if defined(USE_FULL_LL_DRIVER)
#define CLEAR_BIT(REG, BIT)
#define SET_BIT(REG, BIT)
#define WRITE_REG(REG, VAL)
#define MODIFY_REG(REG, CLEARMASK, SETMASK)
#define READ_BIT(REG, BIT)
#define CRS_ISR_SYNCWARNF
SYNC warning flag.
#define CRS_CR_SYNCOKIE
SYNC event OK interrupt enable.
#define CRS_CR_ESYNCIE
Expected SYNC interrupt enable.
#define CRS_CFGR_SYNCSRC
SYNC signal source selection.
#define CRS_CFGR_FELIM
Frequency error limit.
#define CRS_ISR_FECAP_Pos
#define CRS_CR_SWSYNC
Generate software SYNC event.
#define CRS_CFGR_FELIM_Pos
#define CRS_CR_TRIM
HSI48 oscillator smooth trimming.
#define CRS_CFGR_RELOAD
Counter reload value.
#define CRS_ISR_SYNCERR
SYNC error.
#define CRS_ISR_ESYNCF
Expected SYNC flag.
#define CRS_ISR_FEDIR
Frequency error direction.
#define CRS_ISR_ERRF
Error flag.
#define CRS_ISR_SYNCMISS
SYNC missed.
#define CRS_ICR_SYNCOKC
SYNC event OK clear flag.
#define CRS_CFGR_SYNCPOL
SYNC polarity selection.
#define CRS_ICR_SYNCWARNC
SYNC warning clear flag.
#define CRS_CR_SYNCWARNIE
SYNC warning interrupt enable.
#define CRS_CR_ERRIE
SYNC error or trimming error interrupt enable.
#define CRS_CR_CEN
Frequency error counter enable.
#define CRS_ICR_ESYNCC
Expected SYNC clear flag.
#define CRS_CFGR_SYNCDIV
SYNC divider.
#define CRS_ISR_SYNCOKF
SYNC event OK flag.
#define CRS_ICR_ERRC
Error clear flag.
#define CRS_ISR_FECAP
Frequency error capture.
#define CRS_ISR_TRIMOVF
Trimming overflow or underflow.
#define CRS_CR_AUTOTRIMEN
Automatic trimming enable.
CMSIS STM32H7xx Device Peripheral Access Layer Header File.