keil_examples/USBHostLite/UsbHost/Uart/usbhost_uart.c
/*
**************************************************************************************************************
*                                         PRINT STRING
*
* Description: This function is used to print a string
*
* Arguments  : str    Pointer to the string
*
* Returns    : None
*
**************************************************************************************************************
*/
PRINT STRING
Description: This function is used to print a string

Arguments  : str    Pointer to the string

Returns    : None
PRINT STRING Description : This function is used to print a string Arguments : str Pointer to the string Returns : None
void  UART_PrintStr (const uint8_t * str)
{
   while ((*str) != 0) {
      if (*str == '\n') {
         UART_PrintChar(*str++);
         UART_PrintChar('\r');
      } else {
         UART_PrintChar(*str++);
      }    
   }
}
void UART_PrintStr ( const uint8_t * str ) { while ( ( * str ) != 0 ) { if ( * str == ' \n ' ) { UART_PrintChar ( * str ++ ) ; UART_PrintChar ( ' \r ' ) ; } else { UART_PrintChar ( * str ++ ) ; } } }
PRINT STRING
Description: This function is used to print a string
PRINT STRING Description : This function is used to print a string