comparison src/cs/layer1/tm_cust0/l1tm_tpu10.c @ 399:a7150a25086a

l1tm_tpu10.c: initial import from MV100 source
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Jan 2018 01:54:27 +0000
parents
children cc44352c702f
comparison
equal deleted inserted replaced
398:91d64e076fb6 399:a7150a25086a
1 /************* Revision Controle System Header *************
2 * GSM Layer 1 software
3 * L1TM_TPU10.C
4 *
5 * Filename l1tm_tpu10.c
6 * Version 1.4
7 * Date 01/10/03
8 *
9 ************* Revision Controle System Header *************/
10
11 #include "l1_confg.h"
12 #if (TESTMODE && (RF==10))
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_tpu10.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
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 ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3))
41 #include "spi_drv.h"
42 #endif
43
44 #include "sys_types.h"
45 #include "general.h"
46 #include "l1_time.h"
47 #include "tpudrv.h"
48 #include "tpudrv10.h"
49 #include <string.h>
50
51 // Import band configuration from Flash module (need to replace by an access function)
52
53
54 // External function prototypes
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
63 // fill in the cid
64 tm_return->cid = TPU_TABLE_WRITE;
65
66 switch (index)
67 {
68 default:
69 tm_return->size = 0;
70 tm_return->status = E_BADINDEX;
71 break;
72 } // end of switch
73 }
74
75 void Cust_tm_tpu_table_read (T_TM_RETURN *tm_return, WORD8 index)
76 {
77 /*
78 INDICES BETWEEN in [0..63] RANGE ARE RESERVED FOR TI RF MODULE
79 */
80
81 // fill in the cid
82 tm_return->cid = TPU_TABLE_READ;
83
84 switch (index)
85 {
86 default:
87 tm_return->size = 0;
88 tm_return->status = E_BADINDEX;
89 break;
90 } // end of switch
91 }
92
93 #endif //TESTMODE