cancel
Showing results for 
Search instead for 
Did you mean: 

STR91x Lib & UART

Posted on September 15, 2006 at 08:25

STR91x Lib & UART

3 REPLIES 3
Posted on May 17, 2011 at 09:31

Hi,

in the UART libs the UART_ClearITPendingBit()

fuction has the following code :

{

/* Clear the specified interrupt */

UARTx->ICR &= UART_IT;

}

This code in my eval board give me unpredictable results :( !!!

The ICR register is write only.

To clear the IT bit is sufficient to write

UARTx->ICR = UART_IT;

halim
Associate II
Posted on May 17, 2011 at 09:31

Hi

you are right.

This issue was fixed in the next Rev of LIb.

with best regards

Punto

alain239955_st
Associate II
Posted on May 17, 2011 at 09:31

Sorry but the library available NOW on St web site still implement :

void UART_ClearITPendingBit(UART_TypeDef* UARTx, u16 UART_IT)

{

/* Clear the specified interrupt */

UARTx->ICR &= UART_IT;

}

:-Y

Mister StMicro please update your sources !