2008-03-05 10:24 AM
2011-05-17 02:32 AM
Another Bug-- This time in your NEW FWLib for the UART
Where is UART0? see your own comments Too many bugs in NEW release /******************************************************************************* * Function Name : UART_DeInit * Description : Deinitializes the UARTx peripheral registers * to their default reset values. * Input : UARTx: where x can be 0,1 or 2 to select the UART peripheral. * Output : None * Return : None *******************************************************************************/ void UART_DeInit(UART_TypeDef* UARTx) { /* Reset the UARTx registers values */ if(UARTx == UART1) { SCU_APBPeriphReset(__UART1,ENABLE); SCU_APBPeriphReset(__UART1,DISABLE); } else if(UARTx == UART2) { SCU_APBPeriphReset(__UART2,ENABLE); SCU_APBPeriphReset(__UART2,DISABLE); } }