FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/gdd_dio/gdd_dio_txf.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 |
comparison
equal
deleted
inserted
replaced
774:40a721fd9854 | 775:eedbf248bac0 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | File : gdd_dio_txf.c | |
4 +----------------------------------------------------------------------------- | |
5 | Copyright 2002 Texas Instruments Berlin, AG | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments Berlin, AG | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments Berlin, AG. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose : This modul is part of the entity gdd_dio and implements the | |
17 | tx service functions. | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 | |
22 #define ENTITY_GDD_DIO | |
23 | |
24 /*==== INCLUDES =============================================================*/ | |
25 | |
26 #include "typedefs.h" /* to get Condat data types */ | |
27 #include "vsi.h" /* to get a lot of macros */ | |
28 | |
29 /* DIO stuff */ | |
30 #include "dio.h" | |
31 #include "dio_il/dio_drv.h" | |
32 | |
33 | |
34 /* GDD_DIO stuff */ | |
35 | |
36 /* We must define P_DIO_H, in order to avoid inclusion of p_dio.h. | |
37 This is necessary due to the special fact, that "dio.h", which is included | |
38 in the header "dio_io/dio_drv.h", mirrors the header "p_dio.h". */ | |
39 #define P_DIO_H | |
40 | |
41 #include "gdd_dio.h" /* to get the global entity definitions */ | |
42 #include "gdd_dio_con_mgr.h" | |
43 #include "gdd_dio_queue.h" | |
44 | |
45 #include "gdd_dio_txf.h" | |
46 #include "gdd_dio_drxf.h" | |
47 | |
48 /*==== CONST ================================================================*/ | |
49 | |
50 /*==== LOCAL VARS ===========================================================*/ | |
51 | |
52 /*==== PRIVATE FUNCTIONS ====================================================*/ | |
53 | |
54 /*==== PUBLIC FUNCTIONS =====================================================*/ | |
55 | |
56 GLOBAL void gdd_dio_tx_receive_buf(T_GDD_CON_HANDLE con_handle, T_dio_buffer * buf) | |
57 { | |
58 #ifdef GDD_MAKE_DTX_CONTEXT_SWITCH | |
59 U32 signal = GDD_DIO_SIGNAL_RECEIVE_DATA | (U32)con_handle; | |
60 #else /* GDD_MAKE_DTX_CONTEXT_SWITCH */ | |
61 U32 signal = con_handle; | |
62 #endif /* GDD_MAKE_DTX_CONTEXT_SWITCH */ | |
63 | |
64 TRACE_FUNCTION("[GDD] gdd_dio_tx_receive_buf()"); | |
65 | |
66 #ifdef MEMORY_SUPERVISION | |
67 vsi_c_ssend(hCommGDD_DIO, signal, (T_VOID_STRUCT*)buf, sizeof(T_VOID_STRUCT*), __FILE__, __LINE__); | |
68 #else | |
69 vsi_c_ssend(hCommGDD_DIO, signal, (T_VOID_STRUCT*)buf, sizeof(T_VOID_STRUCT*)); | |
70 #endif | |
71 } |