5 #include PLATFORM_HEADER
6 #include "hal/micro/micro-common.h"
11 # define _LLIO_STDIN ((int) stdin)
12 # define _LLIO_STDOUT ((int) stdout)
13 # define _LLIO_STDERR ((int) stderr)
14 # define _LLIO_ERROR (-1)
29 void __io_putchar(
char c)
34 size_t _write(
int handle,
const unsigned char * buffer,
size_t size)
38 if (handle != _LLIO_STDOUT && handle != _LLIO_STDERR) {
45 while ((SC1_UARTSTAT&SC_UARTTXIDLE)!=SC_UARTTXIDLE) {}
50 if(SC1_MODE != SC1_MODE_UART) {
55 __io_putchar(*buffer++);
63 size_t _read(
int handle,
unsigned char * buffer,
size_t size)