Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* @brief system call implementation for newlib
*
* @file _syscalls.c
* @author Bumsik Kim (k.bumsik@gmail.com)
* @date 2018-04-08
*/
#include "terminal.h"
int _write(int file, char *ptr, int len) {
int todo;
static char str[2] = "\0\0";
for (todo = 0; todo < len; todo++) {
str[0] = *ptr++;
terminal_puts(str);
}
return len;
}1fc1053c2This file is pinned to the selected release. Download the original to open it in your design tool.