void UartTxChar(unsignedchar ch)//function to transmit character{
CSL_Status status;while(((hUart->uartRegs->LSR)&(0x0020))!=0x0020);
status = UART_write(hUart,&ch,1,0);if(status == CSL_SOK){// printf("\n sent %c",ch);}else{//printf("\n Write Failed");}//USBSTK5515_waitusec(1000);//while(command != ch );}void UartTxString(unsignedchar*str)//function to transmit string{//while(*str != '\0'){
UartTxChar(*str);*str++;}
UartTxChar(0X0D);
UartTxChar(10);
USBSTK5515_waitusec(25000);//put it to wait for sending
USBSTK5515_waitusec(2500000);//put to wait for the ok