This commit is contained in:
Johan Kanflo 2015-10-06 07:36:05 +00:00
commit 7a7dd658fa
7 changed files with 218 additions and 1 deletions

View file

@ -50,8 +50,9 @@ long _write_r(struct _reent *r, int fd, const char *ptr, int len )
/* syscall implementation for stdio read from UART
at the moment UART functionality is all still in the binary SDK
but there is support for IRQ driven UART0 RX in extras/serial-driver
*/
long _read_r( struct _reent *r, int fd, char *ptr, int len )
long __attribute__((weak)) _read_r( struct _reent *r, int fd, char *ptr, int len )
{
if(fd != r->_stdin->_file) {
r->_errno = EBADF;