Now it is putchar that has to be redefined (instead of __io_putchar), like other platforms.

This commit is contained in:
salvopitru 2011-01-19 09:13:06 +00:00
parent 8f283b3989
commit 5fcae86be3
2 changed files with 11 additions and 15 deletions

View file

@ -18,19 +18,19 @@
# endif
#endif
void __io_putchar(char c)
{
uart1_writeb(c);
}
#undef putchar
int putchar(int c)
int __attribute__(( weak )) putchar(int c)
{
__io_putchar((char) c);
uart1_writeb(c);
return c;
}
void __io_putchar(char c)
{
putchar(c);
}
size_t _write(int handle, const unsigned char * buffer, size_t size)
{
size_t nChars = 0;