annotate chipsetsw/layer1/tpu_drivers/p_source0/p_tpudr12.c @ 348:bc7ca94e52e7

STATUS: l1p_driv.obj reconstruction is now perfect
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 30 Oct 2017 17:27:58 +0000
parents ad79bc0b3312
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
1 /************* Revision Controle System Header *************
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
2 * GSM Layer 1 software
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
3 *
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
4 * Filename p_tpudr12.c
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
5 * Copyright 2003 (C) Texas Instruments
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
6 *
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
7 ************* Revision Controle System Header *************/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
8
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
9 #include "l1_macro.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
10 #include "l1_confg.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
11
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
12 #if L1_GPRS
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
13
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
14 #include "sys_types.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
15 #include "iq.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
16 #include "l1_const.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
17 #include "l1_types.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
18
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
19 #if TESTMODE
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
20 #include "l1tm_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
21 #endif
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
22
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
23 #if (AUDIO_TASK == 1)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
24 #include "l1audio_const.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
25 #include "l1audio_cust.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
26 #include "l1audio_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
27 #endif
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
28
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
29 #if (L1_GTT == 1)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
30 #include "l1gtt_const.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
31 #include "l1gtt_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
32 #endif
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
33
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
34 #if (L1_MP3 == 1)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
35 #include "l1mp3_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
36 #endif
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
37
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
38 #if (L1_MIDI == 1)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
39 #include "l1midi_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
40 #endif
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
41
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
42 #if (L1_AAC == 1)
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
43 #include "l1aac_defty.h"
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
44 #endif
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
45
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
46 #include "l1_defty.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
47 #include "l1_time.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
48 #include "tpudrv.h"
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
49 #include "tpudrv12.h"
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
50 #include "armio.h"
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
51
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
52
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
53 // external function prototypes
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
54
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
55 void l1dmacro_rx_up (void);
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
56 void l1dmacro_rx_down (WORD32 t);
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
57
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
58 void l1dmacro_tx_up (void);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
59 void l1dmacro_tx_down (WORD32 time, BOOL tx_flag, UWORD8 adc_active);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
60
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
61 // external variables and tables
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
62 extern SYS_UWORD16 *TP_Ptr;
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
63
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
64
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
65 /**************************************************************************/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
66 /**************************************************************************/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
67 /* EXTERNAL FUNCTIONS CALLED BY LAYER1 */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
68 /* COMMON TO L1 and TOOLKIT */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
69 /**************************************************************************/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
70 /**************************************************************************/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
71
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
72 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
73 /* l1dmacro_tx_synth */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
74 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
75 /* programs RF synth for transmit */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
76 /* programs OPLL for transmit */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
77 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
78 void l1pdmacro_tx_synth(SYS_UWORD16 radio_freq)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
79 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
80 l1dmacro_tx_synth(radio_freq);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
81 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
82
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
83 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
84 /* l1pdmacro_rx_up */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
85 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
86 /* Open window for normal burst reception */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
87 /*------------------------------------------*/
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
88 void l1pdmacro_rx_up (SYS_UWORD16 radio_freq)
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
89 {
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
90 l1dmacro_rx_up();
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
91 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
92
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
93 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
94 /* l1pdmacro_rx_down */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
95 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
96 /* Close window for normal burst reception */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
97 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
98 void l1pdmacro_rx_down (SYS_UWORD16 radio_freq, UWORD8 num_rx, BOOL rx_done_flag)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
99 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
100 l1dmacro_rx_down (RX_DOWN_TABLE[num_rx - 1]);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
101 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
102
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
103 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
104 /* l1pdmacro_tx_up */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
105 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
106 /* Open transmission window for normal burst*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
107 /*------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
108 void l1pdmacro_tx_up (SYS_UWORD16 radio_freq)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
109 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
110 l1dmacro_tx_up();
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
111 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
112
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
113 /*-------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
114 /* l1pdmacro_tx_down */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
115 /*-------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
116 /* Close transmission window for normal burst*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
117 /*-------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
118 void l1pdmacro_tx_down (SYS_UWORD16 radio_freq, WORD16 time, BOOL tx_flag, UWORD8 timing_advance,UWORD8 adc_active)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
119 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
120 l1dmacro_tx_down (time, tx_flag, adc_active);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
121 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
122
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
123 /*---------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
124 /* l1pdmacro_it_dsp_gen */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
125 /*---------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
126 /* Generate IT to DSP */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
127 /*---------------------------------------------*/
344
ad79bc0b3312 p_tpudr12.c reconstructed, perfect match to original TCS211 object
Mychaela Falconia <falcon@freecalypso.org>
parents: 343
diff changeset
128 void l1pdmacro_it_dsp_gen(WORD16 time)
343
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
129 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
130 // WARNING: 'time' must always be included between 0 and TPU_CLOCK_RANGE !!!
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
131
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
132 *TP_Ptr++ = TPU_FAT (time);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
133 *TP_Ptr++ = TPU_MOVE (TPU_IT_DSP_PG,0x0001);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
134 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
135
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
136 // TEMPORARY !!!!!
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
137
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
138 /*---------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
139 /* l1pdmacro_anchor */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
140 /*---------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
141 /* Temporary macro used to program a TPU */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
142 /* scenario executed on the correct frame */
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
143 /*---------------------------------------------*/
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
144 void l1pdmacro_anchor(WORD16 time)
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
145 {
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
146 // WARNING: 'time' must always be included between 0 and TPU_CLOCK_RANGE !!!
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
147
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
148 *TP_Ptr++ = TPU_FAT (time);
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
149 }
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
150
5df5579f9f92 p_tpudr12.c: initial import of p_tpudr61.c from LoCosto
Mychaela Falconia <falcon@freecalypso.org>
parents: 185
diff changeset
151 #endif