File nut/dev/semihosting.c

References Functions: SemihostingClose() nut/dev/semihosting.c
  SemihostingIOCTL() nut/dev/semihosting.c
  SemihostingInit() nut/dev/semihosting.c
  SemihostingOpen() nut/dev/semihosting.c
  SemihostingRead() nut/dev/semihosting.c
  SemihostingWrite() nut/dev/semihosting.c
  SemihostingWriteP() nut/dev/semihosting.c
References Variables: sh nut/dev/semihosting.c

Included Files


Preprocessor definitions

#define AngelSWI_ARM 0x123456

#define AngelSWI AngelSWI_ARM

#define AngelSWIInsn "swi"

#define AngelSWIAsm swi

#define AngelSWI_Reason_Open 0x01

#define AngelSWI_Reason_Close 0x02

#define AngelSWI_Reason_WriteC 0x03

#define AngelSWI_Reason_Write0 0x04

#define AngelSWI_Reason_Write 0x05

#define AngelSWI_Reason_Read 0x06

#define AngelSWI_Reason_ReadC 0x07

#define AngelSWI_Reason_IsTTY 0x09

#define AngelSWI_Reason_Seek 0x0A

#define AngelSWI_Reason_FLen 0x0C

#define AngelSWI_Reason_TmpNam 0x0D

#define AngelSWI_Reason_Remove 0x0E

#define AngelSWI_Reason_Rename 0x0F

#define AngelSWI_Reason_Clock 0x10

#define AngelSWI_Reason_Time 0x11

#define AngelSWI_Reason_System 0x12

#define AngelSWI_Reason_Errno 0x13

#define AngelSWI_Reason_GetCmdLine 0x15

#define AngelSWI_Reason_HeapInfo 0x16

#define AngelSWI_Reason_EnterSVC 0x17

#define AngelSWI_Reason_ReportException 0x18

#define ADP_Stopped_ApplicationExit

#define ADP_Stopped_RunTimeError


Type struct semihosting_handles

struct semihosting_handles
struct semihosting_handles  
   {  
      int monitor_stdin;  
      int monitor_stdout;  
      int monitor_stderr;  
   }  

Global Variable devSemihosting

NUTDEVICE devSemihosting
Visible in:   nut/dev/semihosting.c

Local Variables

sh
static struct semihosting_handles sh
Used in:   nut/dev/semihosting.c

Global Function SemihostingIOCTL()

int SemihostingIOCTL ( NUTDEVICE* dev, int req, void* conf )
Used in:   nut/dev/semihosting.c

Local Function SemihostingClose()

static int SemihostingClose ( NUTFILE* nf )
Calls: free() nut/crt/malloc.c
Used in:   nut/dev/semihosting.c

Local Function SemihostingInit()

static int SemihostingInit ( NUTDEVICE* dev )
Calls: do_AngelSWI() nut/dev/semihosting.c
Used in:   nut/dev/semihosting.c

Local Function SemihostingOpen()

static NUTFILE* SemihostingOpen ( NUTDEVICE* dev, const char* name, int mode, int acc )
Calls: malloc() nut/crt/malloc.c
Used in:   nut/dev/semihosting.c

Local Function SemihostingRead()

static int SemihostingRead ( NUTFILE* nf, void* buffer, int len )
Calls: do_AngelSWI() nut/dev/semihosting.c
Used in:   nut/dev/semihosting.c

Local Function SemihostingWrite()

static int SemihostingWrite ( NUTFILE* nf, const void* buffer, int len )
Calls: do_AngelSWI() nut/dev/semihosting.c
Used in:   nut/dev/semihosting.c

Local Function SemihostingWriteP()

static int SemihostingWriteP ( NUTFILE* nf, const char* buffer, int len )
Used in:   nut/dev/semihosting.c

Local Function do_AngelSWI()

static inline int do_AngelSWI ( int reason, void* arg )
Called by: SemihostingInit() nut/dev/semihosting.c
  SemihostingRead() nut/dev/semihosting.c
  SemihostingWrite() nut/dev/semihosting.c