23#ifndef ZEPHYR_INCLUDE_ARCH_COMMON_SEMIHOST_H_ 
   24#define ZEPHYR_INCLUDE_ARCH_COMMON_SEMIHOST_H_ 
void semihost_poll_out(char c)
Write a byte to the console.
 
semihost_open_mode
Modes to open a file with.
Definition: semihost.h:91
 
long semihost_open(const char *path, long mode)
Open a file on the host system.
 
char semihost_poll_in(void)
Read a byte from the console.
 
long semihost_write(long fd, const void *buf, long len)
Write the contents of a buffer into a file.
 
long semihost_seek(long fd, long offset)
Seeks to an absolute position in a file.
 
long semihost_exec(enum semihost_instr instr, void *args)
Manually execute a semihosting instruction.
 
long semihost_close(long fd)
Close a file.
 
semihost_instr
Semihosting instructions.
Definition: semihost.h:27
 
long semihost_flen(long fd)
Query the size of a file.
 
long semihost_read(long fd, void *buf, long len)
Read the contents of a file into a buffer.
 
@ SEMIHOST_OPEN_R_PLUS
Definition: semihost.h:94
 
@ SEMIHOST_OPEN_AB
Definition: semihost.h:101
 
@ SEMIHOST_OPEN_W
Definition: semihost.h:96
 
@ SEMIHOST_OPEN_A
Definition: semihost.h:100
 
@ SEMIHOST_OPEN_WB_PLUS
Definition: semihost.h:99
 
@ SEMIHOST_OPEN_RB
Definition: semihost.h:93
 
@ SEMIHOST_OPEN_A_PLUS
Definition: semihost.h:102
 
@ SEMIHOST_OPEN_WB
Definition: semihost.h:97
 
@ SEMIHOST_OPEN_AB_PLUS
Definition: semihost.h:103
 
@ SEMIHOST_OPEN_RB_PLUS
Definition: semihost.h:95
 
@ SEMIHOST_OPEN_R
Definition: semihost.h:92
 
@ SEMIHOST_OPEN_W_PLUS
Definition: semihost.h:98
 
@ SEMIHOST_READ
Definition: semihost.h:39
 
@ SEMIHOST_OPEN
Definition: semihost.h:33
 
@ SEMIHOST_ELAPSED
Definition: semihost.h:68
 
@ SEMIHOST_RENAME
Definition: semihost.h:51
 
@ SEMIHOST_TICKFREQ
Definition: semihost.h:69
 
@ SEMIHOST_WRITE0
Definition: semihost.h:60
 
@ SEMIHOST_WRITEC
Definition: semihost.h:58
 
@ SEMIHOST_SYSTEM
Definition: semihost.h:82
 
@ SEMIHOST_ISERROR
Definition: semihost.h:81
 
@ SEMIHOST_REMOVE
Definition: semihost.h:49
 
@ SEMIHOST_HEAPINFO
Definition: semihost.h:80
 
@ SEMIHOST_CLOSE
Definition: semihost.h:41
 
@ SEMIHOST_GET_CMDLINE
Definition: semihost.h:79
 
@ SEMIHOST_CLOCK
Definition: semihost.h:67
 
@ SEMIHOST_WRITE
Definition: semihost.h:37
 
@ SEMIHOST_SEEK
Definition: semihost.h:45
 
@ SEMIHOST_TMPNAM
Definition: semihost.h:47
 
@ SEMIHOST_ERRNO
Definition: semihost.h:77
 
@ SEMIHOST_ISTTY
Definition: semihost.h:35
 
@ SEMIHOST_READC
Definition: semihost.h:62
 
@ SEMIHOST_FLEN
Definition: semihost.h:43
 
@ SEMIHOST_TIME
Definition: semihost.h:70
 
char c
Definition: printk.c:112