static void lpuart_serial_putc(const char c)
{
if (c == '\n')
- serial_putc('\r');
+ lpuart_serial_putc('\r');
while (!(__raw_readb(&base->us1) & US1_TDRE))
WATCHDOG_RESET();
__raw_writeb(CFIFO_TXFLUSH | CFIFO_RXFLUSH, &base->ucfifo);
/* provide data bits, parity, stop bit, etc */
- serial_setbrg();
+ lpuart_serial_setbrg();
__raw_writeb(UC2_RE | UC2_TE, &base->uc2);
static void lpuart32_serial_putc(const char c)
{
if (c == '\n')
- serial_putc('\r');
+ lpuart32_serial_putc('\r');
while (!(in_be32(&base->stat) & STAT_TDRE))
WATCHDOG_RESET();
out_be32(&base->match, 0);
/* provide data bits, parity, stop bit, etc */
- serial_setbrg();
+ lpuart32_serial_setbrg();
out_be32(&base->ctrl, CTRL_RE | CTRL_TE);