FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/dar/dar_macro_i.h @ 306:81bee6125882
DAR integration: header cleanup
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 16 Mar 2014 06:50:26 +0000 |
parents | 4dccc9d3305f |
children |
comparison
equal
deleted
inserted
replaced
305:4dccc9d3305f | 306:81bee6125882 |
---|---|
1 /********************************************************************************/ | 1 /******************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* File Name: dar_macro_i.h */ | 3 /* File Name: dar_macro_i.h */ |
4 /* */ | 4 /* */ |
5 /* Purpose: This header contains the generic structures and constants */ | 5 /* Purpose: This header contains the generic structures and constants */ |
6 /* that are used by the Diagnose And Recovery layer. */ | 6 /* that are used by the Diagnose And Recovery layer. */ |
7 /* */ | 7 /* */ |
8 /* Note: */ | 8 /* Note: */ |
9 /* None. */ | 9 /* None. */ |
10 /* */ | 10 /* */ |
11 /* Revision History: */ | 11 /* Revision History: */ |
12 /* 27 September 2001 Stephanie Gerthoux Create */ | 12 /* 27 September 2001 Stephanie Gerthoux Create */ |
13 /* */ | 13 /* */ |
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */ | 14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */ |
15 /* */ | 15 /* */ |
16 /********************************************************************************/ | 16 /******************************************************************************/ |
17 | 17 |
18 #include "rv/rv_defined_swe.h" | 18 #include "../../riviera/rv/rv_defined_swe.h" |
19 #include "dar/dar_const_i.h" | 19 #include "dar_const_i.h" |
20 #include "rvm/rvm_use_id_list.h" | 20 #include "../../riviera/rvm/rvm_use_id_list.h" |
21 | 21 |
22 #ifdef RVM_DAR_SWE | 22 #ifdef RVM_DAR_SWE |
23 #ifndef _DAR_MACRO_I_H | 23 #ifndef _DAR_MACRO_I_H |
24 #define _DAR_MACRO_I_H | 24 #define _DAR_MACRO_I_H |
25 | 25 |
31 /* DAR trace macros */ | 31 /* DAR trace macros */ |
32 #define DAR_SEND_TRACE(string,type) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,type,DAR_USE_ID) | 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) | 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) | 34 #define DAR_TRACE_WARNING(string) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,RV_TRACE_LEVEL_WARNING,DAR_USE_ID) |
35 | 35 |
36 /* Macro used to calculate the value of the index of the circular buffer */ | 36 /* Macro used to calculate the value of the index */ |
37 /* of the circular buffer */ | |
37 /* When the end of the buffer is reached, the index = 0 */ | 38 /* When the end of the buffer is reached, the index = 0 */ |
38 #define DAR_PLUS_PLUS(dar_current_index) \ | 39 #define DAR_PLUS_PLUS(dar_current_index) \ |
39 { \ | 40 { \ |
40 dar_current_index++;\ | 41 dar_current_index++;\ |
41 if (dar_current_index == DAR_MAX_BUFFER_SIZE)\ | 42 if (dar_current_index == DAR_MAX_BUFFER_SIZE)\ |