cancel
Showing results for 
Search instead for 
Did you mean: 

UART0 Bug in 91x_uart.c

rgreenthal
Associate II
Posted on March 05, 2008 at 19:24

UART0 Bug in 91x_uart.c

1 REPLY 1
rgreenthal
Associate II
Posted on May 17, 2011 at 11:32

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

}

}