psc->xmitbuf[0] = c;
}
-static void mpc8220_serial_puts(const char *s)
-{
- while (*s) {
- serial_putc (*s++);
- }
-}
-
static int mpc8220_serial_getc(void)
{
volatile psc8220_t *psc = (psc8220_t *) PSC_BASE;
psc->cr = PSC_CR_RX_ENABLE | PSC_CR_TX_ENABLE;
}
-#ifdef CONFIG_SERIAL_MULTI
static struct serial_device mpc8220_serial_drv = {
.name = "mpc8220_serial",
.start = mpc8220_serial_init,
.stop = NULL,
.setbrg = mpc8220_serial_setbrg,
.putc = mpc8220_serial_putc,
- .puts = mpc8220_serial_puts,
+ .puts = default_serial_puts,
.getc = mpc8220_serial_getc,
.tstc = mpc8220_serial_tstc,
};
{
return &mpc8220_serial_drv;
}
-#else
-int serial_init(void)
-{
- return mpc8220_serial_init();
-}
-
-void serial_setbrg(void)
-{
- mpc8220_serial_setbrg();
-}
-
-void serial_putc(const char c)
-{
- mpc8220_serial_putc(c);
-}
-
-void serial_puts(const char *s)
-{
- mpc8220_serial_puts(s);
-}
-
-int serial_getc(void)
-{
- return mpc8220_serial_getc();
-}
-
-int serial_tstc(void)
-{
- return mpc8220_serial_tstc();
-}
-#endif
#endif /* CONFIG_PSC_CONSOLE */