changeset 286:91edaae9d4a6

tpudrv12.c: use #if defined() for Compal/Pirelli support like in Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 15 Mar 2017 02:47:31 +0000
parents 4d9af8de3973
children c24807d0dc36
files chipsetsw/layer1/tpu_drivers/source0/tpudrv12.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/tpu_drivers/source0/tpudrv12.c	Tue Mar 14 20:52:00 2017 +0000
+++ b/chipsetsw/layer1/tpu_drivers/source0/tpudrv12.c	Wed Mar 15 02:47:31 2017 +0000
@@ -175,7 +175,7 @@
     T_TX_RX tx_rx[2];
 };
 
-#if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI
+#if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI)
 typedef UWORD16 T_RXTX_UPDOWN;
 #else
 typedef UWORD8  T_RXTX_UPDOWN;
@@ -586,7 +586,7 @@
 	*TP_Ptr++ = TPU_FAT(0x1384);
 	TSP_TO_ABB(0xA0);
 	*TP_Ptr++ = TPU_FAT(16);
-#if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI
+#if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI)
 	*TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF
 					| RF_SER_ON);
 	*TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8);