2006-09-14 11:25 PM
2011-05-17 12:31 AM
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;2011-05-17 12:31 AM
Hi
you are right. This issue was fixed in the next Rev of LIb. with best regards Punto2011-05-17 12:31 AM
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 !