}
//发送命令
void CommandTx(unsigned int b[])
{unsigned int i,txEmpty;
for(i=0;b;i++)
{txEmpty = (UART_THR_TSR_EMPTY | UART_THR_EMPTY);
/*
** Here we check for the emptiness of both the Trasnsmitter Holding
** Register(THR) and Transmitter Shift Register(TSR) before writing
** data into the Transmitter FIFO(THR for non-FIFO mode).
*/
/*
** Busy check if data is available in receiver FIFO(RBR regsiter in non-FIFO
** mode) so that data could be read from the RBR register.
*/
while ((HWREG(SOC_UART_2_REGS + UART_LSR) & UART_DATA_READY) == 0);