Contiki 2.6

swi.h

00001 /* SWI numbers for RDP (Demon) monitor.  */
00002 #define SWI_WriteC                 0x0
00003 #define SWI_Write0                 0x2
00004 #define SWI_ReadC                  0x4
00005 #define SWI_CLI                    0x5
00006 #define SWI_GetEnv                 0x10
00007 #define SWI_Exit                   0x11
00008 #define SWI_EnterOS                0x16
00009 
00010 #define SWI_GetErrno               0x60
00011 #define SWI_Clock                  0x61
00012 #define SWI_Time                   0x63
00013 #define SWI_Remove                 0x64
00014 #define SWI_Rename                 0x65
00015 #define SWI_Open                   0x66
00016 
00017 #define SWI_Close                  0x68
00018 #define SWI_Write                  0x69
00019 #define SWI_Read                   0x6a
00020 #define SWI_Seek                   0x6b
00021 #define SWI_Flen                   0x6c
00022 
00023 #define SWI_IsTTY                  0x6e
00024 #define SWI_TmpNam                 0x6f
00025 #define SWI_InstallHandler         0x70
00026 #define SWI_GenerateError          0x71
00027 
00028 
00029 /* Now the SWI numbers and reason codes for RDI (Angel) monitors.  */
00030 #define AngelSWI_ARM                    0x123456
00031 #ifdef __thumb__
00032 #define AngelSWI                        0xAB
00033 #else
00034 #define AngelSWI                        AngelSWI_ARM
00035 #endif
00036 
00037 /* The reason codes:  */
00038 #define AngelSWI_Reason_Open            0x01
00039 #define AngelSWI_Reason_Close           0x02
00040 #define AngelSWI_Reason_WriteC          0x03
00041 #define AngelSWI_Reason_Write0          0x04
00042 #define AngelSWI_Reason_Write           0x05
00043 #define AngelSWI_Reason_Read            0x06
00044 #define AngelSWI_Reason_ReadC           0x07
00045 #define AngelSWI_Reason_IsTTY           0x09
00046 #define AngelSWI_Reason_Seek            0x0A
00047 #define AngelSWI_Reason_FLen            0x0C
00048 #define AngelSWI_Reason_TmpNam          0x0D
00049 #define AngelSWI_Reason_Remove          0x0E
00050 #define AngelSWI_Reason_Rename          0x0F
00051 #define AngelSWI_Reason_Clock           0x10
00052 #define AngelSWI_Reason_Time            0x11
00053 #define AngelSWI_Reason_System          0x12
00054 #define AngelSWI_Reason_Errno           0x13
00055 #define AngelSWI_Reason_GetCmdLine      0x15
00056 #define AngelSWI_Reason_HeapInfo        0x16
00057 #define AngelSWI_Reason_EnterSVC        0x17
00058 #define AngelSWI_Reason_ReportException 0x18
00059 #define ADP_Stopped_ApplicationExit     ((2 << 16) + 38)
00060 #define ADP_Stopped_RunTimeError        ((2 << 16) + 35)