comparison g23m/condat/ms/src/aci/dcm_f.c @ 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 :
4 | Modul : ACI - DCM
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 | Description : Contains functionality to maintain UDP/IP and TCP/IP stacks
18 | in parallel
19 +-----------------------------------------------------------------------------
20 */
21
22 #include "dcm_f.h"
23 #include "aci_all.h"
24
25
26 /* This flag is set if an application uses the GPF TCP/IP functionality,
27 in case using the old UDP/IP stack this flag is set to false (default) */
28 static BOOL gpfTcpIpCall = FALSE;
29
30 /******************************************************************************/
31 BOOL is_gpf_tcpip_call()
32 {
33 /* check to ensure that everything is configured well*/
34 #if !defined(FF_GPF_TCPIP)
35 ACI_ASSERT(gpfTcpIpCall EQ FALSE);
36 #endif
37
38 return gpfTcpIpCall;
39 }
40
41
42 /******************************************************************************/
43 void set_gpf_tcpip_call()
44 {
45 #if !defined(FF_GPF_TCPIP)
46 ACI_ASSERT(FALSE);
47 #endif
48 ACI_ASSERT(gpfTcpIpCall NEQ TRUE);
49 gpfTcpIpCall = TRUE;
50 }
51
52
53 /******************************************************************************/
54 void reset_gpf_tcpip_call()
55 {
56 #if !defined(FF_GPF_TCPIP)
57 ACI_ASSERT(FALSE);
58 #endif
59 /*ACI_ASSERT(gpfTcpIpCall EQ TRUE);*/
60 gpfTcpIpCall = FALSE;
61 }
62