mirror of https://gerrit.osmocom.org/simtrace2
Impl of _write for usage by newlib printf
This commit is contained in:
parent
1e15cb6616
commit
5958587fd1
|
@ -111,18 +111,13 @@ extern int _read(int file, char *ptr, int len)
|
|||
|
||||
extern int _write( int file, char *ptr, int len )
|
||||
{
|
||||
/*
|
||||
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 )
|
||||
|
|
Loading…
Reference in New Issue