18#ifdef __USE_COMMON_RETARGET_IO_C__
19#undef __USE_COMMON_RETARGET_IO_C__
27#ifndef VSF_UNUSED_PARAM
28# define VSF_UNUSED_PARAM(__VAL) (void)(__VAL)
31#if VSF_USE_POSIX == ENABLED
42size_t __vsf_stdio_write(
int handle, const
unsigned char *buf,
size_t buf_size)
44 return write(handle, (
void *)buf, buf_size);
48size_t __vsf_stdio_read(
int handle,
unsigned char *buf,
size_t buf_size)
50 return read(handle, buf, buf_size);
61VSF_CAL_WEAK(vsf_stdin_getchar)
62int vsf_stdin_getchar(
void)
86size_t __vsf_stdio_write(
int handle, const
unsigned char *buf,
size_t buf_size)
95 if (handle != 1 && handle != 2) {
98 for (; buf_size > 0; --buf_size) {
106size_t __vsf_stdio_read(
int handle,
unsigned char *buf,
size_t buf_size)
114 for (; buf_size > 0; --buf_size) {
115 uint8_t c = vsf_stdin_getchar();
116 if (c == 0) {
break; }
125#if __IS_COMPILER_IAR__
126# define __USE_COMMON_RETARGET_IO_IAR_C__
128#elif __IS_COMPILER_GCC__ || __IS_COMPILER_LLVM__
129# define __USE_COMMON_RETARGET_IO_GCC_LLVM_C__
#define VSF_CAL_SECTION(__SEC)
Definition __compiler.h:181
#define vsf_stdio_init(...)
Definition default_compiler.h:53
unsigned int size_t
Definition types.h:51
unsigned char uint8_t
Definition lvgl.h:40
#define read
Definition unistd.h:124
#define write
Definition unistd.h:125
void vsf_stdout_init(void)
Definition vsf_trace.c:455
void vsf_stdin_init(void)
Definition vsf_trace.c:467
int vsf_stderr_putchar(char ch)
Definition vsf_trace.c:479
int vsf_stdout_putchar(char ch)
Definition vsf_trace.c:473