syscalls.c File Reference
#include "stm32f4xx.h"
#include "FreeRTOS.h"
#include "kubos-hal/uart.h"
#include <reent.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>

Macros

#define SBRK_ALIGN   8U
 
#define SBRK_INC_MIN   (SBRK_ALIGN)
 

Functions

void * _sbrk (ptrdiff_t size)
 
int _open (const char *name, int mode)
 
ssize_t _read (int fd, void *ptr, size_t len)
 
ssize_t _write (int fd, const void *ptr, size_t len)
 
off_t _lseek (int fd, _off_t ptr, int dir)
 
int _close (int fd)
 
int _stat (const char *filepath, struct stat *st)
 
int _fstat (int fd, struct stat *st)
 
int _isatty (int fd)
 
int _unlink (char *name)
 
int _kill (int pid, int signal)
 
int _getpid ()
 
void __malloc_lock (struct _reent *r)
 
void __malloc_unlock (struct _reent *r)
 

Variables

unsigned int __heap_size
 
unsigned int __mbed_sbrk_start
 

Macro Definition Documentation

#define SBRK_ALIGN   8U
#define SBRK_INC_MIN   (SBRK_ALIGN)

Function Documentation

void __malloc_lock ( struct _reent *  r)
void __malloc_unlock ( struct _reent *  r)
int _close ( int  fd)
int _fstat ( int  fd,
struct stat *  st 
)
int _getpid ( )
int _isatty ( int  fd)
int _kill ( int  pid,
int  signal 
)
off_t _lseek ( int  fd,
_off_t  ptr,
int  dir 
)
int _open ( const char *  name,
int  mode 
)
ssize_t _read ( int  fd,
void *  ptr,
size_t  len 
)
void* _sbrk ( ptrdiff_t  size)
int _stat ( const char *  filepath,
struct stat *  st 
)
int _unlink ( char *  name)
ssize_t _write ( int  fd,
const void *  ptr,
size_t  len 
)

Variable Documentation

unsigned int __heap_size
unsigned int __mbed_sbrk_start