Good Morning!
Where can I find the prototype of this function (_sbrk)?
When I search in my workspace project for this function, there is 0 results for this.
I am trying migrating other funcions (system calls) :
int _close(int file)
void _exit(int status)
int _fstat(int file, struct stat *st)
int _getpid(void)
int _isatty(int file)
int _kill(int pid, int sig)
int _lseek(int file, int ptr, int dir)
int _open(char *name, int flags, int mode)
int _read(int file, char *ptr, int len)
int _stat(char *file, struct stat *st)
int _unlink(char *name)
int _write(int file, char *ptr, int len)
I am doing this because, for example, when I use fopen, I need that this function, open a file from External Flash(using SPI) that have your own functions like write, read, status, etc.
How do I direct all these file handling functions to the SPI interface?
For make this happen I create a function _open that provide this action.
Regards!