STM32CubeG0 icon indicating copy to clipboard operation
STM32CubeG0 copied to clipboard

LL-Function for Clearing RXNE_RXFNE Flag in USART missing

Open MootSeeker opened this issue 3 years ago • 1 comments

Describe the set-up STM32G031F8P6 IDE Version 1.10.1 / Package Version: 1.6.1

Describe the bug The function to clear RXNE flag in LL-Library is missing

How To Reproduce Function is missing

Additional context Please add this function. I think it should look like this:

__STATIC_INLINE void LL_USART_ClearFlag_RXNE_RXFNE(USART_TypeDef *USARTx) { CLEAR_BIT(USART2->ISR, USART_ISR_RXNE_RXFNE); }

MootSeeker avatar Oct 10 '22 12:10 MootSeeker

Hi @MootSeeker,

The RXNE flag could be cleared simply by performing a read operation on the RDR register. You can thus simply use the code snippet below to clear the flag.

READ_REG(husart->Instance->RDR);

With regards,

ASELSTM avatar Oct 18 '22 17:10 ASELSTM

Hi @MootSeeker,

Please allow me to close this thread as no activity. You may reopen it at anytime if you have any details to share with us in order to help you to solve the issue. Thank you for your comprehension.

With regards,

ASELSTM avatar Apr 11 '23 10:04 ASELSTM