Now it is putchar that has to be redefined (instead of __io_putchar), like other platforms.
This commit is contained in:
parent
8f283b3989
commit
5fcae86be3
2 changed files with 11 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue