comparison gsm-fw/g23m-aci/aci/aci_mem.c @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children 79ccc6a27a95
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : J:\g23m-aci\aci\aci_mem.c
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 :
18 +-----------------------------------------------------------------------------
19 */
20 #ifndef ACI_MEM_C
21 #define ACI_MEM_C
22 #endif
23
24 #include "aci_all.h"
25
26 #include "aci_mem.h"
27
28 #ifdef ACI_MEMORY_TRACE
29
30 GLOBAL void aci_mfree (void *ptr, char *file, int line)
31 {
32 TRACE_EVENT_P3 ("MFREE : 0x%X (%d : %s)", ptr, line, file);
33 MFREE (ptr);
34 }
35
36 GLOBAL void *aci_malloc (USHORT size, char *file, int line)
37 {
38 void *newP;
39
40 MALLOC (newP, size);
41 TRACE_EVENT_P4 ("MALLOC: 0x%X %d (%d : %s)",
42 newP, size, line, file);
43 return(newP);
44 }
45
46 #if (CHIPSET==15)
47 GLOBAL void *aci_malloc_nb (USHORT size, char *file, int line)
48 {
49 void *newP;
50
51 MALLOC_NB (newP, size);
52 TRACE_EVENT_P4 ("MALLOC_NB: 0x%X %d (%d : %s)",
53 newP, size, line, file);
54 return(newP);
55 }
56 #endif /* (CHIPSET==15) */
57
58 #endif /* ACI_MEMORY_TRACE */