feat: usart retarget
This commit is contained in:
@ -89,33 +89,33 @@ __attribute__((weak)) int _write(int file, char *ptr, int len)
|
||||
return len;
|
||||
}
|
||||
|
||||
int _close(int file)
|
||||
{
|
||||
(void)file;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int _fstat(int file, struct stat *st)
|
||||
{
|
||||
(void)file;
|
||||
st->st_mode = S_IFCHR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int _isatty(int file)
|
||||
{
|
||||
(void)file;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int _lseek(int file, int ptr, int dir)
|
||||
{
|
||||
(void)file;
|
||||
(void)ptr;
|
||||
(void)dir;
|
||||
return 0;
|
||||
}
|
||||
// int _close(int file)
|
||||
// {
|
||||
// (void)file;
|
||||
// return -1;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// int _fstat(int file, struct stat *st)
|
||||
// {
|
||||
// (void)file;
|
||||
// st->st_mode = S_IFCHR;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int _isatty(int file)
|
||||
// {
|
||||
// (void)file;
|
||||
// return 1;
|
||||
// }
|
||||
//
|
||||
// int _lseek(int file, int ptr, int dir)
|
||||
// {
|
||||
// (void)file;
|
||||
// (void)ptr;
|
||||
// (void)dir;
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
int _open(char *path, int flags, ...)
|
||||
{
|
||||
|
Reference in New Issue
Block a user