/* Receives a character. If a character is not available, returns -1.  */
static int ug_udbg_getc_poll(void)
/* Receives a character. If a character is not available, returns -1.  */
static int ug_udbg_getc_poll(void)
{
	if (!ug_is_rxfifo_ready())
		return -1;
	return ug_getc();
}