Skip to content

LL Function for checking UCPD RxErr Flag is missing #42

@ualbertagreen

Description

@ualbertagreen

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);
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthalHAL-LL driver-related issue or pull-request.internal bug trackerIssue confirmed and logged into the internal bug tracking systemusb-pdUSB Power-Delivery-related issue or pull-request

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions