comparison src/cs/layer1/tm_cust0/l1tm_tpu12.c @ 0:b6a5e36de839

src/cs: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:39:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b6a5e36de839
1 /************* Revision Controle System Header *************
2 * GSM Layer 1 software
3 * L1TM_TPU2.C
4 *
5 * Filename %M%
6 * Version %I%
7 * Date %G%
8 *
9 ************* Revision Controle System Header *************/
10 #include "l1_confg.h"
11
12 #if (TESTMODE && (RF==12))
13
14 #include "tm_defs.h"
15 #include "l1_const.h"
16 #include "l1_types.h"
17
18 #include "l1tm_defty.h"
19 #include "l1tm_cust.h"
20 #include "l1tm_tpu12.h"
21
22 #if (AUDIO_TASK == 1)
23 #include "l1audio_const.h"
24 #include "l1audio_cust.h"
25 #include "l1audio_defty.h"
26 #endif
27 ////////////////////////////henry
28 #if (L1_GTT == 1)
29 #include "l1gtt_const.h"
30 #include "l1gtt_defty.h"
31 #endif
32 ///////////////////////////
33 #include "l1_defty.h"
34 #include "l1_msgty.h"
35 #include "l1_tabs.h"
36
37 #include "l1tm_msgty.h"
38 #include "l1tm_varex.h"
39
40 #if ((ANLG_FAM == 1) || (ANLG_FAM == 2))
41 #include "spi_drv.h"
42 #endif
43
44 #include "tpudrv12.h"
45 #include "l1_rf12.h"
46
47
48 #include <string.h>
49
50 // Import band configuration from Flash module (need to replace by an access function)
51
52
53 // External function prototypes
54
55
56 void Cust_tm_tpu_table_write (T_TM_RETURN *tm_return, WORD8 index, UWORD8 size, UWORD8 table[])
57 {
58 /*
59 INDICES BETWEEN in [0..63] RANGE ARE RESERVED FOR TI RF MODULE
60 */
61
62 // fill in the cid
63 tm_return->cid = TPU_TABLE_WRITE;
64
65 switch (index)
66 {
67 default:
68 tm_return->size = 0;
69 tm_return->status = E_BADINDEX;
70 break;
71 } // end of switch
72 }
73
74 void Cust_tm_tpu_table_read (T_TM_RETURN *tm_return, WORD8 index)
75 {
76 /*
77 INDICES BETWEEN in [0..63] RANGE ARE RESERVED FOR TI RF MODULE
78 */
79
80 // fill in the cid
81 tm_return->cid = TPU_TABLE_READ;
82
83 switch (index)
84 {
85 default:
86 tm_return->size = 0;
87 tm_return->status = E_BADINDEX;
88 break;
89 } // end of switch
90 }
91
92 #endif //TESTMODE