# HG changeset patch # User Mychaela Falconia # Date 1623223611 0 # Node ID 10b3a6876273b0b0b23e7b8f960d7db33d2a86e0 # Parent 160a5b3a076cbde7ca4827c08b044931f88da04c 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. diff -r 160a5b3a076c -r 10b3a6876273 src/cs/layer1/tpu_drivers/source0/tpudrv12.h --- 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 diff -r 160a5b3a076c -r 10b3a6876273 targets/luna1.h --- 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 diff -r 160a5b3a076c -r 10b3a6876273 targets/luna2.h --- 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 diff -r 160a5b3a076c -r 10b3a6876273 targets/tangomdm.h --- 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