comparison src/gpf3/frame/frm_ext.c @ 2:c41a534f33c6

src/gpf3: preened GPF goo from TCS3.2
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 23:52:50 +0000
parents
children
comparison
equal deleted inserted replaced
1:864b8cc0cf63 2:c41a534f33c6
1 /*
2 +------------------------------------------------------------------------------
3 | File: frm_ext.h
4 +------------------------------------------------------------------------------
5 | Copyright 2005 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 module provides functionality for the Frame Extension
17 | Interface.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef __FRM_EXT_C__
22 #define __FRM_EXT_C__
23 /*==== INCLUDES ===================================================*/
24
25 #include <stdio.h>
26 #include <string.h>
27
28 #include "typedefs.h"
29 #include "os.h"
30 #include "vsi.h"
31 #include "frame.h"
32 #include "tools.h"
33 #include "frm_defs.h"
34 #include "frm_types.h"
35 #include "frm_glob.h"
36 #include "p_mem.h"
37 #include "frm_ext.h"
38
39 /*==== TYPES ================================================================*/
40
41
42 /*==== PROTOTYPES ===============================================================*/
43
44 void fei_lemu_SendToQueue_init ( void );
45 void fei_lemu_SendToQueue_register(int(* func)(OS_HANDLE SndComHandle, OS_HANDLE RcvComHandle,
46 OS_HANDLE RcvQHandle, USHORT Prio, ULONG Suspend,
47 OS_QDATA *Msg ), ULONG ret_ok);
48
49 /*==== MACROS ================================================================*/
50
51 #define LEMU_SENDTOQUEUE_INITIALIZED 0xaffedead
52
53 /*==== VARIABLES ==================================================*/
54
55 #ifndef _TOOLS_
56 #ifndef RUN_INT_RAM
57 T_lemu_SendToQueue lemu_SendToQueue_func;
58 #else
59 extern T_lemu_SendToQueue lemu_SendToQueue_func;
60 #endif
61 #endif
62
63 /*==== FUNCTIONS ==================================================*/
64
65 #ifndef _TOOLS_
66 #ifndef RUN_INT_RAM
67 /*
68 +------------------------------------------------------------------------------
69 | Function : fei_lemu_SendToQueue_register
70 +------------------------------------------------------------------------------
71 | Description : register the lemu_SendToQueue function.
72 |
73 | Parameters : func - pointer to API function pointer table
74 |
75 | Return : void
76 +------------------------------------------------------------------------------
77 */
78 void fei_lemu_SendToQueue_register( int (* func)(OS_HANDLE SndComHandle,
79 OS_HANDLE RcvComHandle, OS_HANDLE RcvQHandle, USHORT Prio,
80 ULONG Suspend, OS_QDATA *Msg ), ULONG ret_ok)
81 {
82 lemu_SendToQueue_func.ret_ok = ret_ok;
83 lemu_SendToQueue_func.plemu_SendToQueue = func;
84 lemu_SendToQueue_func.magic_nr = LEMU_SENDTOQUEUE_INITIALIZED;
85 }
86 #endif
87
88 #ifndef RUN_INT_RAM
89 /*
90 +------------------------------------------------------------------------------
91 | Function : fei_lemu_SendToQueue_init
92 +------------------------------------------------------------------------------
93 | Description : initialize lemu_SendToQueue function pointer table.
94 |
95 | Parameters : void
96 |
97 | Return : void
98 +------------------------------------------------------------------------------
99 */
100 void fei_lemu_SendToQueue_init ( void )
101 {
102 if ( lemu_SendToQueue_func.magic_nr != LEMU_SENDTOQUEUE_INITIALIZED)
103 {
104 lemu_SendToQueue_func.ret_ok = 0;
105 lemu_SendToQueue_func.plemu_SendToQueue = NULL;
106 lemu_SendToQueue_func.magic_nr = 0;
107 }
108 }
109 #endif
110
111 #endif /* !_TOOLS_*/
112
113
114 #endif /* __FRM_EXT_C__ */