Interrupt function
OS_ISR(APP_isrUart)
{
unsigned int irq = ((*((volatile uint32 *)(UART_START_ADR + 0x08))) >> 1) & 0x0007;
uint8 u8Byte;
if (irq & E_AHI_UART_INT_RXDATA)
{
uint8 u8Byte = u8AHI_UartReadData(UART);
OS_ePostMessage(APP_msgSerialRx, &u8Byte);
DBG_vPrintf(TRACE_APP, "APP_isrUart %d\n",u8Byte);
}
if (irq & E_AHI_UART_INT_TX)
{
if (OS_E_OK == OS_eCollectMessage(APP_msgSerialTx, &u8Byte))
{
UART_vSetTxInterrupt(TRUE);
vAHI_UartWriteData(UART, u8Byte);
/* decrement activity counter for dequeued data */
PWRM_eFinishActivity();
}
else
{
/* disable tx interrupt as nothing to send */
UART_vSetTxInterrupt(FALSE);
}
}
}
But now I don't know how to send data and receive data to Uart1. I used the following method, but it doesn't seem to work.

Can you tell me where is the problem? And how to send and receive correctly!thanks