changeset 267:10b3a6876273

fc-target.h preprocessor symbols: introduce CONFIG_TARGET_LEO_RFFE Out of our currently existing supported targets, Leonardo and Tango use TI's classic Leonardo RFFE wiring. However, we would like to use the same quadband RFFE with the same classic wiring on our FreeCalypso Libre Dumbphone handset, and also on the planned development board that will serve as a stepping stone toward that goal. Therefore, we introduce the new CONFIG_TARGET_LEO_RFFE preprocessor symbol, and conditionalize on this symbol in tpudrv12.h, instead of a growing || of different targets.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 09 Jun 2021 07:26:51 +0000
parents 160a5b3a076c
children f2e52cab0a73
files src/cs/layer1/tpu_drivers/source0/tpudrv12.h targets/luna1.h targets/luna2.h targets/tangomdm.h
diffstat 4 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/tpu_drivers/source0/tpudrv12.h	Wed Jun 02 02:12:14 2021 +0000
+++ b/src/cs/layer1/tpu_drivers/source0/tpudrv12.h	Wed Jun 09 07:26:51 2021 +0000
@@ -234,8 +234,7 @@
 #define TEST_TX_ON    0
 #define TEST_RX_ON    0
 
-#if defined(CONFIG_TARGET_LEONARDO) || defined(CONFIG_TARGET_ESAMPLE) || \
-	defined(CONFIG_TARGET_TANGO)
+#ifdef CONFIG_TARGET_LEO_RFFE
 
   // 4-band config (E-sample, P2, Leonardo)
   #define FEM_7         BIT_2     // act2
--- a/targets/luna1.h	Wed Jun 02 02:12:14 2021 +0000
+++ b/targets/luna1.h	Wed Jun 09 07:26:51 2021 +0000
@@ -1,5 +1,6 @@
 #define	CONFIG_TARGET_LUNA	1
 #define	CONFIG_TARGET_TANGO	1
+#define	CONFIG_TARGET_LEO_RFFE	1
 #define	CONFIG_GPIO046_OUTPUTS	1
 #define	CONFIG_MCSI_UNUSED	1
 #define	CONFIG_GPIO1_HIGH	1
--- a/targets/luna2.h	Wed Jun 02 02:12:14 2021 +0000
+++ b/targets/luna2.h	Wed Jun 09 07:26:51 2021 +0000
@@ -1,5 +1,6 @@
 #define	CONFIG_TARGET_LUNA	1
 #define	CONFIG_TARGET_TANGO	1
+#define	CONFIG_TARGET_LEO_RFFE	1
 #define	CONFIG_GPIO046_OUTPUTS	1
 #define	CONFIG_GPIO1_HIGH	1
 #define	GPIO1_SPEAKER_CTRL	0
--- a/targets/tangomdm.h	Wed Jun 02 02:12:14 2021 +0000
+++ b/targets/tangomdm.h	Wed Jun 09 07:26:51 2021 +0000
@@ -1,4 +1,5 @@
 #define	CONFIG_TARGET_TANGO	1
+#define	CONFIG_TARGET_LEO_RFFE	1
 #define	CONFIG_GPIO046_OUTPUTS	1
 #define	CONFIG_TANGO_MODEM	1
 #define	CONFIG_MCSI_MODEM	1