comparison services/dar/dar_error_hdlr.c @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /****************************************************************************/
2 /* */
3 /* File Name: dar_error_hdlr.c */
4 /* */
5 /* Purpose: This file contains routines used to report unrecoverable */
6 /* memory errors that might occur. */
7 /* */
8 /* Version 0.1 */
9 /* */
10 /* Date Modification */
11 /* ------------------------------------------------------------------------*/
12 /* 27 September 2001 Create */
13 /* */
14 /* Author: Stephanie Gerthoux */
15 /* */
16 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/
18
19 #include "../../riviera/rv/rv_defined_swe.h"
20 #ifdef RVM_DAR_SWE
21
22 #include "../../riviera/rv/rv_general.h"
23 #include "../../riviera/rvf/rvf_api.h"
24 #include "dar_error_hdlr_i.h"
25 #include "dar_macro_i.h"
26
27 /***************************************************************************/
28 /* */
29 /* Function Name: dar_error_trace */
30 /* */
31 /* Purpose: This function is used to report error occured during*/
32 /* the diagnose entity execution */
33 /* */
34 /* Input Parameters: */
35 /* status - Contains the error code to be reported. */
36 /* */
37 /* Output Parameters: */
38 /* None. */
39 /* */
40 /* Global Parameters: */
41 /* None. */
42 /* */
43 /* Note: */
44 /* None. */
45 /* */
46 /* Revision History: */
47 /* 27 September 01 Create */
48 /* */
49 /***************************************************************************/
50 void dar_error_trace(UINT8 error_id)
51 {
52 switch(error_id)
53 {
54 case DAR_ENTITY_NOT_START:
55 {
56 DAR_SEND_TRACE("DAR entity not started.",RV_TRACE_LEVEL_ERROR);
57 break;
58 }
59
60 case DAR_ENTITY_NO_MEMORY:
61 {
62 DAR_SEND_TRACE("DAR entity has not enough memory",
63 RV_TRACE_LEVEL_ERROR);
64 break;
65 }
66
67 case DAR_ENTITY_BAD_PARAMETER:
68 {
69 DAR_SEND_TRACE("DAR entity has bad parameters",
70 RV_TRACE_LEVEL_ERROR);
71 break;
72 }
73
74 case DAR_ERROR_STOP_EVENT:
75 {
76 DAR_SEND_TRACE("DAR entity has received a stop error event",
77 RV_TRACE_LEVEL_ERROR);
78 break;
79 }
80
81 case DAR_ERROR_START_EVENT:
82 {
83 DAR_SEND_TRACE("DAR entity has received a start error event",
84 RV_TRACE_LEVEL_ERROR);
85 break;
86 }
87
88 case DAR_ENTITY_BAD_MESSAGE:
89 {
90 DAR_SEND_TRACE("DAR entity has received a bad message",
91 RV_TRACE_LEVEL_ERROR);
92 break;
93 }
94 }
95 }
96 /*********************** End of dar_error_trace function *******************/
97
98 /***************************************************************************/
99 /* */
100 /* Function Name: dar_ffs_error_trace */
101 /* */
102 /* Purpose: This function is used to report error occured during*/
103 /* the dar entity execution */
104 /* */
105 /* Input Parameters: */
106 /* status - Contains the error code to be reported. */
107 /* */
108 /* Output Parameters: */
109 /* None. */
110 /* */
111 /* Global Parameters: */
112 /* None. */
113 /* */
114 /* Note: */
115 /* None. */
116 /* */
117 /* Revision History: */
118 /* 29 october 01 Create */
119 /* */
120 /***************************************************************************/
121 void dar_ffs_error_trace(UINT8 error_id)
122 {
123 switch(error_id)
124 {
125 case DAR_ENTITY_NO_MEMORY:
126 {
127 DAR_SEND_TRACE("DAR FFS entity has not enough memory",
128 RV_TRACE_LEVEL_ERROR);
129 break;
130 }
131 case DAR_ENTITY_FILE_ERROR:
132 {
133 DAR_SEND_TRACE("DAR FFS entity has received a wrong file name or the flash is not formatted",RV_TRACE_LEVEL_ERROR);
134 break;
135 }
136
137 case DAR_ENTITY_FILE_NO_SAVED:
138 {
139 DAR_SEND_TRACE("DAR FFS entity has not saved the file",
140 RV_TRACE_LEVEL_ERROR);
141 break;
142 }
143
144 case DAR_ENTITY_FILE_NO_CLOSE:
145 {
146 DAR_SEND_TRACE("DAR FFS entity has not closed the file",
147 RV_TRACE_LEVEL_ERROR);
148 break;
149 }
150 } /* switch(error_id) */
151 } /* dar_ffs_error_trace */
152 /******************** End of dar_ffs_error_trace function *****************/
153
154 #endif /* #ifdef RVM_DAR_SWE */