FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/include/driver/semihost.h File Reference

Macros

#define SEMIHOST_EXIT_SUCCESS
 
#define SEMIHOST_EXIT_ERROR
 

Enumerations

enum  semihosting_operation_numbers
 

Functions

long __syscall_error (long)
 
static long __internal_semihost (long n, long _a1)
 
void semihost_write0 (const char *print_string)
 
int semihost_open (const char *name, int mode)
 
int semihost_close (int fd)
 
int semihost_read (int fd, uint8_t *buffer, int len)
 
int semihost_write (int fd, uint8_t *buffer, int len)
 
int semihost_seek (int fd, uint32_t pos)
 
int semihost_flen (int fd)
 
int semihost_exit (int code)
 

Macro Definition Documentation

#define SEMIHOST_EXIT_ERROR
#define SEMIHOST_EXIT_SUCCESS

Enumeration Type Documentation

Enumerator
SEMIHOSTING_ENTER_SVC 
SEMIHOSTING_SYS_CLOCK 
SEMIHOSTING_SYS_ELAPSED 
SEMIHOSTING_SYS_ERRNO 
SEMIHOSTING_SYS_EXIT 
SEMIHOSTING_SYS_EXIT_EXTENDED 
SEMIHOSTING_SYS_FLEN 
SEMIHOSTING_SYS_GET_CMDLINE 
SEMIHOSTING_SYS_HEAPINFO 
SEMIHOSTING_SYS_ISERROR 
SEMIHOSTING_SYS_ISTTY 
SEMIHOSTING_SYS_OPEN 
SEMIHOSTING_SYS_CLOSE 
SEMIHOSTING_SYS_READ 
SEMIHOSTING_SYS_READC 
SEMIHOSTING_SYS_REMOVE 
SEMIHOSTING_SYS_RENAME 
SEMIHOSTING_SYS_SEEK 
SEMIHOSTING_SYS_WRITE 
SEMIHOSTING_SYS_WRITEC 
SEMIHOSTING_SYS_WRITE0 
SEMIHOSTING_SYS_SYSTEM 
SEMIHOSTING_SYS_TICKFREQ 
SEMIHOSTING_SYS_TIME 
SEMIHOSTING_SYS_TMPNAM 
SEMIHOSTING_ENTER_SVC 
SEMIHOSTING_SYS_CLOCK 
SEMIHOSTING_SYS_ELAPSED 
SEMIHOSTING_SYS_ERRNO 
SEMIHOSTING_SYS_EXIT 
SEMIHOSTING_SYS_EXIT_EXTENDED 
SEMIHOSTING_SYS_FLEN 
SEMIHOSTING_SYS_GET_CMDLINE 
SEMIHOSTING_SYS_HEAPINFO 
SEMIHOSTING_SYS_ISERROR 
SEMIHOSTING_SYS_ISTTY 
SEMIHOSTING_SYS_OPEN 
SEMIHOSTING_SYS_CLOSE 
SEMIHOSTING_SYS_READ 
SEMIHOSTING_SYS_READC 
SEMIHOSTING_SYS_REMOVE 
SEMIHOSTING_SYS_RENAME 
SEMIHOSTING_SYS_SEEK 
SEMIHOSTING_SYS_WRITE 
SEMIHOSTING_SYS_WRITEC 
SEMIHOSTING_SYS_WRITE0 
SEMIHOSTING_SYS_SYSTEM 
SEMIHOSTING_SYS_TICKFREQ 
SEMIHOSTING_SYS_TIME 
SEMIHOSTING_SYS_TMPNAM 

Function Documentation

static long __internal_semihost ( long  n,
long  _a1 
)
inlinestatic

References __syscall_error().

long __syscall_error ( long  )
int semihost_close ( int  fd)
int semihost_exit ( int  code)
int semihost_flen ( int  fd)
int semihost_open ( const char *  name,
int  mode 
)
int semihost_read ( int  fd,
uint8_t *  buffer,
int  len 
)
int semihost_seek ( int  fd,
uint32_t  pos 
)
int semihost_write ( int  fd,
uint8_t *  buffer,
int  len 
)
void semihost_write0 ( const char *  print_string)