/* This function is used to display a string on console, normally, it's invoked by rt_kprintf */
void rt_hw_console_output(const char *str)
/* This function is used to display a string on console, normally, it's invoked by rt_kprintf */
void rt_hw_console_output(const char *str)
{
    while (*str)
    {
        if (*str=='\n')
        {
            while (!(U0LSR & 0x20));
            U0THR = '\r';
        }
        while (!(U0LSR & 0x20));
        U0THR = *str;
        str ++;
    }
}