Go to the documentation of this file.00001
00043 #if !defined (FAILURE_H)
00044 #define FAILURE_H
00045
00046
00047
00048 #include <std.h>
00049
00050
00051 #if defined (__cplusplus)
00052 extern "C" {
00053 #endif
00054
00055
00056 #if defined (_DEBUG)
00057
00058
00059
00060
00061
00062
00063
00064 #if (defined(USE_CCS_BREAKPOINT) && defined( _55_ ))
00065
00066 #define CCS_BREAKPOINT \
00067 asm(" ;\n .if (.MNEMONIC)\n ESTOP_1\n .else\n ESTOP_1()\n .endif\n NOP")
00068
00069 #endif
00070
00071
00078 #define FID_BASE (0x100)
00079 #define FID_APP_C (FID_BASE + 0x1)
00080 #define FID_HAL_C (FID_BASE + 0x2)
00081 #define FID_DRV_C (FID_BASE + 0x3)
00082 #define FID_SHMDRV_C (FID_BASE + 0x4)
00083 #define FID_DSPLINKIPS_C (FID_BASE + 0x5)
00084 #define FID_IPS_C (FID_BASE + 0x6)
00085 #define FID_DSPLINKPOOL_C (FID_BASE + 0x7)
00086 #define FID_SMAPOOL_C (FID_BASE + 0x8)
00087 #define FID_MPCS_C (FID_BASE + 0x9)
00088 #define FID__MPCS_C (FID_BASE + 0xA)
00089 #define FID_MPLIST_C (FID_BASE + 0xB)
00090 #define FID__MPLIST_C (FID_BASE + 0xC)
00091 #define FID_DSPLINKMQT_C (FID_BASE + 0xD)
00092 #define FID_ZCPYMQT_C (FID_BASE + 0xE)
00093 #define FID_DSPLINKDATA_C (FID_BASE + 0xF)
00094 #define FID_ZCPYDATA_C (FID_BASE + 0x10)
00095 #define FID_NOTIFY_C (FID_BASE + 0x11)
00096 #define FID__NOTIFY_C (FID_BASE + 0x12)
00097 #define FID_RINGIO_C (FID_BASE + 0x13)
00098 #define FID__RINGIO_C (FID_BASE + 0x14)
00099 #define FID_DSPLINKMSQ_C (FID_BASE + 0x15)
00100
00107 #define SET_FAILURE_REASON(code) SetReason (FILEID, __LINE__, code)
00108
00109
00132 Void SetReason (int fileId, int lineNo, int failureCode) ;
00133
00134 #else
00135
00136 #define SET_FAILURE_REASON(code)
00137
00138 #endif
00139
00140
00141 #if defined (__cplusplus)
00142 }
00143 #endif
00144
00145
00146 #endif