GFX Develop Branch

This commit is contained in:
2024-06-11 19:38:14 +02:00
parent e23389a0b9
commit b0ef96e390
647 changed files with 10174 additions and 6435 deletions

View File

@ -819,6 +819,91 @@ __STATIC_INLINE uint32_t LL_COMP_ReadOutputLevel(COMP_TypeDef *COMPx)
* @}
*/
/** @defgroup COMP_LL_EF_FLAG_Management Comparator flag Management
* @{
*/
/**
* @brief Get comparator output trigger flag (latched)
* @rmtoll SR C1IF LL_COMP_IsActiveFlag_OutputTrig
* @param COMPx Comparator instance
* @retval State of bit (1 or 0).
*/
__STATIC_INLINE uint32_t LL_COMP_IsActiveFlag_OutputTrig(COMP_TypeDef *COMPx)
{
if (COMPx == COMP1)
{
return ((READ_BIT(COMP12->SR, COMP_SR_C1IF) == (COMP_SR_C1IF)) ? 1UL : 0UL);
}
else
{
return ((READ_BIT(COMP12->SR, COMP_SR_C2IF) == (COMP_SR_C2IF)) ? 1UL : 0UL);
}
}
/**
* @brief Clear comparator comparator output trigger flag (latched)
* @rmtoll ICFR CC1IF LL_COMP_ClearFlag_OutputTrig
* @param COMPx Comparator instance
* @retval None
*/
__STATIC_INLINE void LL_COMP_ClearFlag_OutputTrig(COMP_TypeDef *COMPx)
{
if (COMPx == COMP1)
{
SET_BIT(COMP12->ICFR, COMP_ICFR_C1IF);
}
else
{
SET_BIT(COMP12->ICFR, COMP_ICFR_C2IF);
}
}
/**
* @}
*/
/** @defgroup COMP_LL_EF_IT_Management Comparartor IT management
* @{
*/
/**
* @brief Enable comparator output trigger interrupt
* @rmtoll ICFR ITEN LL_COMP_EnableIT_OutputTrig
* @param COMPx Comparator instance
* @retval None
*/
__STATIC_INLINE void LL_COMP_EnableIT_OutputTrig(COMP_TypeDef *COMPx)
{
SET_BIT(COMPx->CFGR, COMP_CFGRx_ITEN);
}
/**
* @brief Disable comparator output trigger interrupt
* @rmtoll ICFR ITEN LL_COMP_DisableIT_OutputTrig
* @param COMPx Comparator instance
* @retval None
*/
__STATIC_INLINE void LL_COMP_DisableIT_OutputTrig(COMP_TypeDef *COMPx)
{
CLEAR_BIT(COMPx->CFGR, COMP_CFGRx_ITEN);
}
/**
* @brief Get comparator output trigger interrupt state
* @rmtoll ICFR ITEN LL_COMP_IsEnabledIT_OutputTrig
* @param COMPx Comparator instance
* @retval State of bit (1 or 0).
*/
__STATIC_INLINE uint32_t LL_COMP_IsEnabledIT_OutputTrig(COMP_TypeDef *COMPx)
{
return ((READ_BIT(COMPx->CFGR, COMP_CFGRx_ITEN) == (COMP_CFGRx_ITEN)) ? 1UL : 0UL);
}
/**
* @}
*/
#if defined(USE_FULL_LL_DRIVER)
/** @defgroup COMP_LL_EF_Init Initialization and de-initialization functions
* @{