Fix spiff and stdin_uart_interrupt overiding the same read function

This commit is contained in:
sheinz 2016-10-23 14:04:34 +03:00
parent 2994a566a6
commit 3eb784b758
3 changed files with 16 additions and 17 deletions

View file

@ -75,9 +75,9 @@ uint32_t uart0_num_char(void)
return count;
}
// _read_r in core/newlib_syscalls.c will be skipped by the linker in favour
// _read_stdin_r in core/newlib_syscalls.c will be skipped by the linker in favour
// of this function
long _read_r(struct _reent *r, int fd, char *ptr, int len)
long _read_stdin_r(struct _reent *r, int fd, char *ptr, int len)
{
if (!inited) uart0_rx_init();
for(int i = 0; i < len; i++) {