
28 Jan
2011
28 Jan
'11
8:13 p.m.
On Fri, 28 Jan 2011 13:06:28 -0600 Timur Tabi timur@freescale.com wrote:
+void putc(char c) +{
- if (c == '\n')
- NS16550_putc((NS16550_t)CONFIG_SYS_NS16550_COM1, '\r');
- NS16550_putc((NS16550_t)CONFIG_SYS_NS16550_COM1, c);
+}
+void puts(const char *str) +{
- while (*str)
- putc(*str++);
+}
These look like functions that shouldn't be in board-specific code.
That's been established practice in the SPL board files so far, though I suppose it could be factored out to its own file.
-Scott