changeset 583:ff1065828669

tpudrv12.c: l1dmacro_init_hw() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 15 Aug 2014 21:49:39 +0000
parents 81753f5e902e
children d42078e35ac9
files gsm-fw/L1/tpudrv/tpudrv12.c
diffstat 1 files changed, 5 insertions(+), 87 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/tpudrv/tpudrv12.c	Fri Aug 15 19:25:58 2014 +0000
+++ b/gsm-fw/L1/tpudrv/tpudrv12.c	Fri Aug 15 21:49:39 2014 +0000
@@ -842,7 +842,7 @@
    // Set FEM to inactive state before turning ON the RF Board
    // At this point the RF regulators are still OFF. Thus the
    // FEM command is not inverted yet => Must use the FEM "SLEEP programming"
-
+   *TP_Ptr++ = TPU_MOVE(TSP_ACT, 0x01);
 
    // TPU_SLEEP
    l1dmacro_idle();
@@ -850,10 +850,10 @@
    *TP_Ptr++ = TPU_AT(t);
    *TP_Ptr++ = TPU_SYNC(0);
 
-	//Check Initialisation or Reset for TPU2OCP
-
-
-   *TP_Ptr++ = TPU_MOVE(REG_SPI_ACT_U, TXM_SLEEP);
+   /* from disassembly, differs from LoCosto version */
+   *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET1, 0x20);
+   *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET2, 0x06);
+   *TP_Ptr++ = TPU_MOVE(TSP_SPI_SET3, 0x00);
 
    t = 1000;      // arbitrary start time
 
@@ -887,85 +887,3 @@
 
    return;
 }
-
-//BHO added
-/*
- * l1dmacro_rx_fbsb
- *
- * Receive Frequency burst
- */
-
-#if ((REL99 == 1) && (FF_BHO == 1))
-#if(L1_RF_KBD_FIX == 1)
-#if (L1_MADC_ON == 1)
-void l1dmacro_rx_fbsb (SYS_UWORD16 radio_freq, UWORD8 adc_active)
-#else
-void l1dmacro_rx_fbsb (SYS_UWORD16 radio_freq)
-#endif
-{
-#if (L1_MADC_ON == 1)
-  l1dmacro_rx_up(adc_active, L1_SAIC_HARDWARE_FILTER, L1_KBD_DIS_RX_FB
-	#if(NEW_SNR_THRESHOLD==1)
-		, SAIC_OFF
-	#endif
-		  );
-#else
-  l1dmacro_rx_up(L1_SAIC_HARDWARE_FILTER, L1_KBD_DIS_RX_FB);
-#endif
-
-
-  // same as rx_fb
-  *TP_Ptr++ = TPU_AT(0); //  1
-  *TP_Ptr++ = TPU_AT(0); //  2
-  *TP_Ptr++ = TPU_AT(0); //  3
-  *TP_Ptr++ = TPU_AT(0); //  4
-  *TP_Ptr++ = TPU_AT(0); //  5
-  *TP_Ptr++ = TPU_AT(0); //  6
-  *TP_Ptr++ = TPU_AT(0); //  7
-  *TP_Ptr++ = TPU_AT(0); //  8
-  *TP_Ptr++ = TPU_AT(0); //  9
-  *TP_Ptr++ = TPU_AT(0); //  10
-  *TP_Ptr++ = TPU_AT(0); //  11
-
-  // one more for SB
-  *TP_Ptr++ = TPU_AT(0); //  12
-
-  l1dmacro_rx_down (STOP_RX_FBSB);
-}
-#endif/*(L1_RF_KBD_FIX == 1)*/
-
-#if(L1_RF_KBD_FIX == 0)
-#if (L1_MADC_ON == 1)
-void l1dmacro_rx_fbsb (SYS_UWORD16 radio_freq, UWORD8 adc_active)
-#else
-void l1dmacro_rx_fbsb (SYS_UWORD16 radio_freq)
-#endif
-{
-#if (L1_MADC_ON == 1)
-  l1dmacro_rx_up(adc_active, L1_SAIC_HARDWARE_FILTER);
-#else
-  l1dmacro_rx_up(L1_SAIC_HARDWARE_FILTER);
-#endif
-
-  // same as rx_fb
-  *TP_Ptr++ = TPU_AT(0); //  1
-  *TP_Ptr++ = TPU_AT(0); //  2
-  *TP_Ptr++ = TPU_AT(0); //  3
-  *TP_Ptr++ = TPU_AT(0); //  4
-  *TP_Ptr++ = TPU_AT(0); //  5
-  *TP_Ptr++ = TPU_AT(0); //  6
-  *TP_Ptr++ = TPU_AT(0); //  7
-  *TP_Ptr++ = TPU_AT(0); //  8
-  *TP_Ptr++ = TPU_AT(0); //  9
-  *TP_Ptr++ = TPU_AT(0); //  10
-  *TP_Ptr++ = TPU_AT(0); //  11
-
-  // one more for SB
-  *TP_Ptr++ = TPU_AT(0); //  12
-
-  l1dmacro_rx_down (STOP_RX_FBSB);
-}
-#endif/*(L1_RF_KBD_FIX == 0)*/
-#endif // #if ((REL99 == 1) && (FF_BHO == 1))
-
-////BHO