comparison src/cs/services/dar/dar_error_hdlr.c @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
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 "rv/rv_defined_swe.h"
20 #ifdef RVM_DAR_SWE
21
22 #include "rv/rv_general.h"
23 #include "rvf/rvf_api.h"
24 #include "dar/dar_error_hdlr_i.h"
25 #include "dar/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 the */
32 /* 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",RV_TRACE_LEVEL_ERROR);
63 break;
64 }
65
66 case DAR_ENTITY_BAD_PARAMETER:
67 {
68 DAR_SEND_TRACE("DAR entity has bad parameters",RV_TRACE_LEVEL_ERROR);
69 break;
70 }
71
72 case DAR_ERROR_STOP_EVENT:
73 {
74 DAR_SEND_TRACE("DAR entity has received a stop error event",RV_TRACE_LEVEL_ERROR);
75 break;
76 }
77
78 case DAR_ERROR_START_EVENT:
79 {
80 DAR_SEND_TRACE("DAR entity has received a start error event",RV_TRACE_LEVEL_ERROR);
81 break;
82 }
83
84 case DAR_ENTITY_BAD_MESSAGE:
85 {
86 DAR_SEND_TRACE("DAR entity has received a bad message",RV_TRACE_LEVEL_ERROR);
87 break;
88 }
89 }
90 }
91 /************************* End of dar_error_trace function **********************/
92
93 /********************************************************************************/
94 /* */
95 /* Function Name: dar_ffs_error_trace */
96 /* */
97 /* Purpose: This function is used to report error occured during the */
98 /* dar entity execution */
99 /* */
100 /* Input Parameters: */
101 /* status - Contains the error code to be reported. */
102 /* */
103 /* Output Parameters: */
104 /* None. */
105 /* */
106 /* Global Parameters: */
107 /* None. */
108 /* */
109 /* Note: */
110 /* None. */
111 /* */
112 /* Revision History: */
113 /* 29 october 01 Create */
114 /* */
115 /********************************************************************************/
116 void dar_ffs_error_trace(UINT8 error_id)
117 {
118 switch(error_id)
119 {
120 case DAR_ENTITY_NO_MEMORY:
121 {
122 DAR_SEND_TRACE("DAR FFS entity has not enough memory",RV_TRACE_LEVEL_ERROR);
123 break;
124 }
125 case DAR_ENTITY_FILE_ERROR:
126 {
127 DAR_SEND_TRACE("DAR FFS entity has received a wrong file name or the flash is not formatted",RV_TRACE_LEVEL_ERROR);
128 break;
129 }
130
131 case DAR_ENTITY_FILE_NO_SAVED:
132 {
133 DAR_SEND_TRACE("DAR FFS entity has not saved the file",RV_TRACE_LEVEL_ERROR);
134 break;
135 }
136
137 case DAR_ENTITY_FILE_NO_CLOSE:
138 {
139 DAR_SEND_TRACE("DAR FFS entity has not closed the file",RV_TRACE_LEVEL_ERROR);
140 break;
141 }
142 } /* switch(error_id) */
143 } /* dar_ffs_error_trace */
144 /************************* End of dar_ffs_error_trace function **********************/
145
146 #endif /* #ifdef RVM_DAR_SWE */