FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/services/dar/dar_macro_i.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
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 "rv/rv_defined_swe.h" | |
19 #include "dar/dar_const_i.h" | |
20 #include "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 of the circular buffer */ | |
37 /* When the end of the buffer is reached, the index = 0 */ | |
38 #define DAR_PLUS_PLUS(dar_current_index) \ | |
39 { \ | |
40 dar_current_index++;\ | |
41 if (dar_current_index == DAR_MAX_BUFFER_SIZE)\ | |
42 {\ | |
43 dar_current_index = 0;\ | |
44 }\ | |
45 } \ | |
46 | |
47 | |
48 #ifdef __cplusplus | |
49 } | |
50 #endif | |
51 | |
52 #endif | |
53 | |
54 #endif /* #ifdef RVM_DAR_SWE */ |