µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
semihosting.h File Reference

Go to the source code of this file.

Macros

#define AngelSWI   AngelSWI_ARM
 
#define AngelSWI_ARM   0x123456
 
#define AngelSWIAsm   swi
 
#define AngelSWIInsn   "swi"
 

Enumerations

enum  OperationNumber {
  SEMIHOSTING_EnterSVC = 0x17 ,
  SEMIHOSTING_ReportException = 0x18 ,
  SEMIHOSTING_SYS_CLOSE = 0x02 ,
  SEMIHOSTING_SYS_CLOCK = 0x10 ,
  SEMIHOSTING_SYS_ELAPSED = 0x30 ,
  SEMIHOSTING_SYS_ERRNO = 0x13 ,
  SEMIHOSTING_SYS_FLEN = 0x0C ,
  SEMIHOSTING_SYS_GET_CMDLINE = 0x15 ,
  SEMIHOSTING_SYS_HEAPINFO = 0x16 ,
  SEMIHOSTING_SYS_ISERROR = 0x08 ,
  SEMIHOSTING_SYS_ISTTY = 0x09 ,
  SEMIHOSTING_SYS_OPEN = 0x01 ,
  SEMIHOSTING_SYS_READ = 0x06 ,
  SEMIHOSTING_SYS_READC = 0x07 ,
  SEMIHOSTING_SYS_REMOVE = 0x0E ,
  SEMIHOSTING_SYS_RENAME = 0x0F ,
  SEMIHOSTING_SYS_SEEK = 0x0A ,
  SEMIHOSTING_SYS_SYSTEM = 0x12 ,
  SEMIHOSTING_SYS_TICKFREQ = 0x31 ,
  SEMIHOSTING_SYS_TIME = 0x11 ,
  SEMIHOSTING_SYS_TMPNAM = 0x0D ,
  SEMIHOSTING_SYS_WRITE = 0x05 ,
  SEMIHOSTING_SYS_WRITEC = 0x03 ,
  SEMIHOSTING_SYS_WRITE0 = 0x04 ,
  ADP_Stopped_ApplicationExit = ((2 << 16) + 38) ,
  ADP_Stopped_RunTimeError = ((2 << 16) + 35)
}
 

Functions

static int call_host (int reason, void *arg)
 
static void report_exception (int reason)
 

Macro Definition Documentation

◆ AngelSWI

#define AngelSWI   AngelSWI_ARM

Definition at line 73 of file semihosting.h.

◆ AngelSWI_ARM

#define AngelSWI_ARM   0x123456

Definition at line 69 of file semihosting.h.

◆ AngelSWIAsm

#define AngelSWIAsm   swi

Definition at line 83 of file semihosting.h.

◆ AngelSWIInsn

#define AngelSWIInsn   "swi"

Definition at line 82 of file semihosting.h.

Enumeration Type Documentation

◆ OperationNumber

Enumerator
SEMIHOSTING_EnterSVC 
SEMIHOSTING_ReportException 
SEMIHOSTING_SYS_CLOSE 
SEMIHOSTING_SYS_CLOCK 
SEMIHOSTING_SYS_ELAPSED 
SEMIHOSTING_SYS_ERRNO 
SEMIHOSTING_SYS_FLEN 
SEMIHOSTING_SYS_GET_CMDLINE 
SEMIHOSTING_SYS_HEAPINFO 
SEMIHOSTING_SYS_ISERROR 
SEMIHOSTING_SYS_ISTTY 
SEMIHOSTING_SYS_OPEN 
SEMIHOSTING_SYS_READ 
SEMIHOSTING_SYS_READC 
SEMIHOSTING_SYS_REMOVE 
SEMIHOSTING_SYS_RENAME 
SEMIHOSTING_SYS_SEEK 
SEMIHOSTING_SYS_SYSTEM 
SEMIHOSTING_SYS_TICKFREQ 
SEMIHOSTING_SYS_TIME 
SEMIHOSTING_SYS_TMPNAM 
SEMIHOSTING_SYS_WRITE 
SEMIHOSTING_SYS_WRITEC 
SEMIHOSTING_SYS_WRITE0 
ADP_Stopped_ApplicationExit 
ADP_Stopped_RunTimeError 

Definition at line 32 of file semihosting.h.

Function Documentation

◆ call_host()

static int call_host ( int  reason,
void *  arg 
)
inlinestatic

Definition at line 100 of file semihosting.h.

◆ report_exception()

static void report_exception ( int  reason)
inlinestatic

Definition at line 135 of file semihosting.h.