FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/ms/src/aci/aci_all.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 | 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 #if defined(WIN32) || defined(_SIMULATION_) | |
32 #define FF_TTY | |
33 #endif | |
34 | |
35 #define ACI_MEMBER | |
36 | |
37 /*==== INCLUDES ===================================================*/ | |
38 | |
39 #include <stdlib.h> | |
40 #include <stdio.h> | |
41 #include <ctype.h> | |
42 #include "typedefs.h" | |
43 #include <string.h> | |
44 #include "vsi.h" | |
45 #include "custom.h" | |
46 #include "gsm.h" | |
47 #ifdef GPRS | |
48 #include "gprs.h" /* to see SNDCP_NAME */ | |
49 #endif /* GPRS */ | |
50 #include "prim.h" | |
51 #include "message.h" | |
52 #include "tok.h" | |
53 #include "ccdapi.h" | |
54 | |
55 | |
56 | |
57 EXTERN char * getFileName(char * file); | |
58 | |
59 #ifdef _SIMULATION_ | |
60 #define ACI_ASSERT(exp) \ | |
61 do { \ | |
62 if(!(exp)) { \ | |
63 int * p = NULL; \ | |
64 TRACE_EVENT_P2("[ERROR] Assertion Failed in %s:%i: "#exp,getFileName(__FILE__),__LINE__); \ | |
65 vsi_t_sleep(0,2000);\ | |
66 /*lint -e413 */ *p=1; /*lint +e413 */ \ | |
67 } \ | |
68 }while(0) | |
69 #else | |
70 #define ACI_ASSERT(exp) \ | |
71 if(!(exp)) { \ | |
72 TRACE_EVENT_P2("[ERROR] Assertion Failed in %s:%i: "#exp,getFileName(__FILE__),__LINE__); \ | |
73 } | |
74 #endif |