ECE 486 Support Libraries
|
Support files for GNU libc. More...
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>
#include <errno.h>
#include <reent.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdint.h>
#include "usart.h"
Go to the source code of this file.
Macros | |
#define | FreeRTOS |
#define | MAX_STACK_SIZE 0x2000 |
Functions | |
int | __io_putchar (int ch) __attribute__((weak)) |
int | __io_getchar (void) |
int | _gettimeofday (struct timeval *tp, struct timezone *tzp) |
void | initialise_monitor_handles () |
int | _getpid (void) |
int | _kill (int pid, int sig) |
void | _exit (int status) |
int | _write (int file, char *ptr, int len) |
int | _close (int file) |
int | _fstat (int file, struct stat *st) |
int | _isatty (int file) |
int | _lseek (int file, int ptr, int dir) |
int | _read (int file, char *ptr, int len) |
int | _open (char *path, int flags,...) |
int | _wait (int *status) |
int | _unlink (char *name) |
int | _times (struct tms *buf) |
int | _stat (char *file, struct stat *st) |
int | _link (char *old, char *new) |
int | _fork (void) |
int | _execve (char *name, char **argv, char **env) |
Support files for GNU libc.
Some standard syscall functions are redefined here in order to make printf() calls direct output to the USART (to be accessed by the host when the development board is connected through the USB connector)
note the changes to _write()
Definition in file syscalls.c.
#define FreeRTOS |
Definition at line 35 of file syscalls.c.
#define MAX_STACK_SIZE 0x2000 |
Definition at line 36 of file syscalls.c.
int __io_getchar | ( | void | ) |
Definition at line 39 of file syscalls.c.
int __io_putchar | ( | int | ch | ) |
int _close | ( | int | file | ) |
Definition at line 123 of file syscalls.c.
int _execve | ( | char * | name, |
char ** | argv, | ||
char ** | env | ||
) |
Definition at line 197 of file syscalls.c.
void _exit | ( | int | status | ) |
Definition at line 110 of file syscalls.c.
int _fork | ( | void | ) |
Definition at line 191 of file syscalls.c.
int _fstat | ( | int | file, |
struct stat * | st | ||
) |
Definition at line 128 of file syscalls.c.
int _getpid | ( | void | ) |
Definition at line 99 of file syscalls.c.
int _gettimeofday | ( | struct timeval * | tp, |
struct timezone * | tzp | ||
) |
Definition at line 84 of file syscalls.c.
int _isatty | ( | int | file | ) |
Definition at line 134 of file syscalls.c.
int _kill | ( | int | pid, |
int | sig | ||
) |
Definition at line 104 of file syscalls.c.
int _link | ( | char * | old, |
char * | new | ||
) |
Definition at line 185 of file syscalls.c.
int _lseek | ( | int | file, |
int | ptr, | ||
int | dir | ||
) |
Definition at line 139 of file syscalls.c.
int _open | ( | char * | path, |
int | flags, | ||
... | |||
) |
Definition at line 156 of file syscalls.c.
int _read | ( | int | file, |
char * | ptr, | ||
int | len | ||
) |
Definition at line 144 of file syscalls.c.
int _stat | ( | char * | file, |
struct stat * | st | ||
) |
Definition at line 179 of file syscalls.c.
int _times | ( | struct tms * | buf | ) |
Definition at line 174 of file syscalls.c.
int _unlink | ( | char * | name | ) |
Definition at line 168 of file syscalls.c.
int _wait | ( | int * | status | ) |
Definition at line 162 of file syscalls.c.
int _write | ( | int | file, |
char * | ptr, | ||
int | len | ||
) |
Definition at line 116 of file syscalls.c.
void initialise_monitor_handles | ( | ) |
Definition at line 95 of file syscalls.c.