/* RT-Thread Console Interface, used by rt_kprintf 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)
/* RT-Thread Console Interface, used by rt_kprintf 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 (!(AT91C_BASE_US0->US_CSR & AT91C_US_TXRDY));
			AT91C_BASE_US0->US_THR = '\r';
		}
		while (!(AT91C_BASE_US0->US_CSR & AT91C_US_TXRDY));
		AT91C_BASE_US0->US_THR = *str;
		str ++;
	}
}