CH32V307_FreeRTOS_Hello/src/syscalls.c

23 lines
297 B
C
Raw Permalink Normal View History

2022-04-30 10:07:26 +00:00
#include <sys/stat.h>
2022-05-01 13:45:10 +00:00
#include "FreeRTOS.h"
#include "task.h"
2022-04-30 10:07:26 +00:00
int _fstat(int file, struct stat *st) {
2023-04-10 15:59:21 +00:00
st->st_mode = S_IFCHR;
2022-04-30 10:07:26 +00:00
2023-04-10 15:59:21 +00:00
return 0;
2022-04-30 10:07:26 +00:00
}
int _close(int file) {
2023-04-10 15:59:21 +00:00
return -1;
2022-04-30 10:07:26 +00:00
}
int _isatty(int file) {
2023-04-10 15:59:21 +00:00
return -1;
2022-04-30 10:07:26 +00:00
}
off_t _lseek(int file, off_t pos, int whence) {
2023-04-10 15:59:21 +00:00
return -1;
2022-04-30 10:07:26 +00:00
}