changeset 450:395e464e4005

Compal & Pirelli targets: APCOFF register setting changed to match what the respective original firmwares set
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 05 Mar 2018 04:01:30 +0000
parents 3bf62c0a7f34
children fd1d9063ad40
files src/cs/layer1/cust0/l1_rf12.h
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/cust0/l1_rf12.h	Mon Jan 29 06:27:47 2018 +0000
+++ b/src/cs/layer1/cust0/l1_rf12.h	Mon Mar 05 04:01:30 2018 +0000
@@ -169,10 +169,12 @@
   #define  C_VBDCTRL        ((0x006 << 6) | VBDCTRL   | TRUE)   // Downlink gain amp 0dB, Volume control -12 dB
  // RITA does not need an APCOFFSET because the PACTRL is internal: 
   // REMOVE //#define  C_APCOFF          0x1016 | (0x3c << 6) | TRUE   // x2 slope 128 
-#if (RF_PA == 0 || RF_PA == 3) 
-  #define  C_APCOFF         ((0x040 << 6) | APCOFF    | TRUE) // x2 slope 128 
-#elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4) 
-  #define  C_APCOFF         ((0x070 << 6) | APCOFF    | TRUE) // x2 slope 128 
+#if (RF_PA == 0 || RF_PA == 3) || defined(CONFIG_TARGET_PIRELLI)
+  #define  C_APCOFF         ((0x040 << 6) | APCOFF    | TRUE) // x2 slope 128
+#elif defined(CONFIG_TARGET_COMPAL)
+  #define  C_APCOFF         ((0x060 << 6) | APCOFF    | TRUE) // x2 slope 128
+#elif (RF_PA == 1 || RF_PA == 2 || RF_PA == 4)
+  #define  C_APCOFF         ((0x070 << 6) | APCOFF    | TRUE) // x2 slope 128
 #endif
   #define  C_BULIOFF        ((0x0FF << 6) | BULIOFF   | TRUE)   // value at reset
   #define  C_BULQOFF        ((0x0FF << 6) | BULQOFF   | TRUE)   // value at reset