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