comparison services/dar/dar_macro_i.h @ 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_macro_i.h */
4 /* */
5 /* Purpose: This header contains the generic structures and constants */
6 /* that are used by the Diagnose And Recovery layer. */
7 /* */
8 /* Note: */
9 /* None. */
10 /* */
11 /* Revision History: */
12 /* 27 September 2001 Stephanie Gerthoux Create */
13 /* */
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */
15 /* */
16 /******************************************************************************/
17
18 #include "../../riviera/rv/rv_defined_swe.h"
19 #include "dar_const_i.h"
20 #include "../../riviera/rvm/rvm_use_id_list.h"
21
22 #ifdef RVM_DAR_SWE
23 #ifndef _DAR_MACRO_I_H
24 #define _DAR_MACRO_I_H
25
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30
31 /* DAR trace macros */
32 #define DAR_SEND_TRACE(string,type) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,type,DAR_USE_ID)
33 #define DAR_SEND_TRACE_PARAM(string,param,type) rvf_send_trace (string,(sizeof(string)-1),(UINT32)param,type,DAR_USE_ID)
34 #define DAR_TRACE_WARNING(string) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,RV_TRACE_LEVEL_WARNING,DAR_USE_ID)
35
36 /* Macro used to calculate the value of the index */
37 /* of the circular buffer */
38 /* When the end of the buffer is reached, the index = 0 */
39 #define DAR_PLUS_PLUS(dar_current_index) \
40 { \
41 dar_current_index++;\
42 if (dar_current_index == DAR_MAX_BUFFER_SIZE)\
43 {\
44 dar_current_index = 0;\
45 }\
46 } \
47
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif
54
55 #endif /* #ifdef RVM_DAR_SWE */