FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/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

Referenced by system_exit().

#define SEMIHOST_EXIT_SUCCESS

Referenced by system_exit().

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  )

Referenced by __internal_semihost().

int semihost_close ( int  fd)
int semihost_exit ( int  code)

Referenced by system_exit().

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)