STM32CubeG0 icon indicating copy to clipboard operation
STM32CubeG0 copied to clipboard

LL Function for checking UCPD RxErr Flag is missing

Open ualbertagreen opened this issue 2 years ago • 2 comments

The function for checking is the RxErr flag is missing. Despite the fact the RxErr flag is defined in LL-UCPD, it is never used.

Additional context If you have a first analysis or patch correction, thank you to share your proposal.

The function for checking RxErr flag should look like this:

/**
  * @brief  Check if Rx error interrupt
  * @rmtoll SR          RXERR         LL_UCPD_IsActiveFlag_RxErr
  * @param  UCPDx UCPD Instance
  * @retval None
  */
__STATIC_INLINE uint32_t LL_UCPD_IsActiveFlag_RxErr(UCPD_TypeDef const * const UCPDx)
{
  return ((READ_BIT(UCPDx->SR, UCPD_SR_RXERR) == UCPD_SR_RXERR) ? 1UL : 0UL);
}

ualbertagreen avatar Mar 01 '23 22:03 ualbertagreen

Hi @ualbertagreen,

Please excuse this delayed reply. Your request looks very legitimate. It has been forwarded to our development teams. I will keep you posted.

With regards,

ALABSTM avatar Feb 08 '24 16:02 ALABSTM

ST Internal Reference: 173010

ALABSTM avatar Feb 08 '24 16:02 ALABSTM