ArcherChang 921fbfbc21 [1] 添加Andes N1068体系;
[2] 基于AE210P EVB板;
[3] 详细信息参阅bsp/AE210P/readme文件夹;
    《Andes工程创建和调试》文档;等。
2017-08-25 10:25:33 +08:00

42 lines
533 B
C

#include "uart/uart.h"
#include <stdio.h>
__attribute__((used))
int fputc(int c, FILE *stream)
{
if (c == '\n')
drv_uart_put_char('\r');
drv_uart_put_char(c);
return c;
}
__attribute__((used))
int fputs(const char *s, FILE *stream)
{
while (fputc(*s++, stream))
;
return 0;
}
__attribute__((used))
int putc(int c, FILE *stream)
{
return fputc(c, stream);
}
__attribute__((used))
int putchar(int c)
{
return fputc(c, (void*)0x10);
}
__attribute__((used))
int puts(const char *s)
{
return fputs(s, (void*)0x10);
}