STMicroelectronics / STM32CubeG0

STM32Cube MCU Full Package for the STM32G0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
165 stars 75 forks source link

LL Function for checking UCPD RxErr Flag is missing #42

Open ualbertagreen opened 1 year ago

ualbertagreen commented 1 year ago

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);
}
ALABSTM commented 8 months ago

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 commented 8 months ago

ST Internal Reference: 173010