comparison src/g23m-aci/aci/aci_all.h @ 162:53929b40109c

src/g23m-aci: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2016 02:02:43 +0000
parents
children
comparison
equal deleted inserted replaced
161:4557e2a9c18e 162:53929b40109c
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : ACI
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : This header shall be included in all ACI files.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifdef MFW
22 #define ENTITY_MFW
23 #else
24 #ifdef SMI
25 #define ENTITY_SMI
26 #else
27 #define ENTITY_ACI
28 #endif
29 #endif
30
31 //TISH modified for MSIM
32 //#if defined(WIN32) || defined(_SIMULATION_)
33 //#define FF_TTY
34 //#endif
35
36 #define ACI_MEMBER
37
38 /*==== INCLUDES ===================================================*/
39
40 #include <stdlib.h>
41 #include <stdio.h>
42 #include <ctype.h>
43 #include "typedefs.h"
44 #include <string.h>
45 #include "vsi.h"
46 #include "custom.h"
47 #include "gsm.h"
48 #ifdef GPRS
49 #include "gprs.h" /* to see SNDCP_NAME */
50 #endif /* GPRS */
51 #include "prim.h"
52 #include "message.h"
53 #include "tok.h"
54 #include "ccdapi.h"
55
56
57
58 EXTERN char * getFileName(char * file);
59
60 #ifdef _SIMULATION_
61 #define ACI_ASSERT(exp) \
62 do { \
63 if(!(exp)) { \
64 int * p = NULL; \
65 TRACE_EVENT_P2("[ERROR] Assertion Failed in %s:%i: "#exp,getFileName(__FILE__),__LINE__); \
66 vsi_t_sleep(0,2000);\
67 /*lint -e413 */ *p=1; /*lint +e413 */ \
68 } \
69 }while(0)
70 #else
71 #define ACI_ASSERT(exp) \
72 if(!(exp)) { \
73 TRACE_EVENT_P2("[ERROR] Assertion Failed in %s:%i: "#exp,getFileName(__FILE__),__LINE__); \
74 }
75 #endif