From 5958587fd1e79d30e4aab4c05d1f4952c0b305d6 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Mon, 6 Apr 2015 19:47:22 +0200 Subject: [PATCH] Impl of _write for usage by newlib printf --- .../libboard_sam3s-ek/source/syscalls.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sam3s_example/atmel_softpack_libraries/libboard_sam3s-ek/source/syscalls.c b/sam3s_example/atmel_softpack_libraries/libboard_sam3s-ek/source/syscalls.c index a71173c8..71cc69a8 100644 --- a/sam3s_example/atmel_softpack_libraries/libboard_sam3s-ek/source/syscalls.c +++ b/sam3s_example/atmel_softpack_libraries/libboard_sam3s-ek/source/syscalls.c @@ -111,18 +111,13 @@ extern int _read(int file, char *ptr, int len) extern int _write( int file, char *ptr, int len ) { -/* - int iIndex ; + int iIndex ; - -// for ( ; *ptr != 0 ; ptr++ ) for ( iIndex=0 ; iIndex < len ; iIndex++, ptr++ ) { UART_PutChar( *ptr ) ; } return iIndex ; -*/ - return -1; } extern void _exit( int status )