FreeRTOS Real Time Operating System, Modified from Kenji Arai's initial port. See freertos.org for full documentation.

Fork of FreeRTOS_on_mbed_v1 by Kenji Arai

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers syscalls.c Source File

syscalls.c

00001 /* Don't need anything here. */
00002 
00003 #include <stdlib.h>
00004 #if 0
00005 #include <sys/stat.h>
00006 #else
00007 
00008 #endif
00009 
00010 //---------------------------------
00011 // from types.h
00012 typedef    char *    caddr_t;
00013 //----------------------------------
00014 
00015 int _read_r (struct _reent *r, int file, char * ptr, int len)
00016 {
00017     ( void ) r;
00018     ( void ) file;
00019     ( void ) ptr;
00020     ( void ) len;
00021     return -1;
00022 }
00023 
00024 /***************************************************************************/
00025 
00026 int _lseek_r (struct _reent *r, int file, int ptr, int dir)
00027 {
00028     ( void ) r;
00029     ( void ) file;
00030     ( void ) ptr;
00031     ( void ) dir;
00032     
00033     return 0;
00034 }
00035 
00036 /***************************************************************************/
00037 
00038 int _write_r (struct _reent *r, int file, char * ptr, int len)
00039 {  
00040     ( void ) r;
00041     ( void ) file;
00042     ( void ) ptr;
00043     ( void ) len;
00044     
00045     return 0;
00046 }
00047 
00048 /***************************************************************************/
00049 
00050 int _close_r (struct _reent *r, int file)
00051 {
00052     ( void ) r;
00053     ( void ) file;
00054 
00055     return 0;
00056 }
00057 
00058 /***************************************************************************/
00059 
00060 caddr_t _sbrk_r (struct _reent *r, int incr)
00061 {
00062     ( void ) r;
00063     ( void ) incr;
00064     
00065     return 0;
00066 }
00067 
00068 /***************************************************************************/
00069 
00070 int _fstat_r (struct _reent *r, int file, struct stat * st)
00071 {
00072     ( void ) r;
00073     ( void ) file;
00074     ( void ) st;
00075     
00076     return 0;
00077 }
00078 
00079 /***************************************************************************/
00080 
00081 int _isatty_r(struct _reent *r, int fd)
00082 {
00083     ( void ) r;
00084     ( void ) fd;
00085     
00086     return 0;
00087 }
00088 
00089 
00090 
00091