CONSOLE) = c;
}
-/***********************************************************************
- * @Function: serial_puts
- * @Return: n/a
- * @Descr: writes non-zero string to the FIFO.
- ***********************************************************************/
-
-static void ns9750_serial_puts(const char *s)
-{
- while (*s) {
- serial_putc( *s++ );
- }
-}
-
/***********************************************************************
* @Function: serial_getc
* @Return: the character read
return NS9750_SER_RX_CHAR_TIMER_TRUN;
}
-#ifdef CONFIG_SERIAL_MULTI
static struct serial_device ns9750_serial_drv = {
.name = "ns9750_serial",
.start = ns9750_serial_init,
.stop = NULL,
.setbrg = ns9750_serial_setbrg,
.putc = ns9750_serial_putc,
- .puts = ns9750_serial_puts,
+ .puts = default_serial_puts,
.getc = ns9750_serial_getc,
.tstc = ns9750_serial_tstc,
};
{
return &ns9750_serial_drv;
}
-#else
-int serial_init(void)
-{
- return ns9750_serial_init();
-}
-
-void serial_setbrg(void)
-{
- ns9750_serial_setbrg();
-}
-
-void serial_putc(const char c)
-{
- ns9750_serial_putc(c);
-}
-
-void serial_puts(const char *s)
-{
- ns9750_serial_puts(s);
-}
-
-int serial_getc(void)
-{
- return ns9750_serial_getc();
-}
-
-int serial_tstc(void)
-{
- return ns9750_serial_tstc();
-}
-#endif