# HG changeset patch # User Mychaela Falconia # Date 1489546051 0 # Node ID 91edaae9d4a63cae185d0ac253da4305d58e6036 # Parent 4d9af8de3973cfa28cd8ee9fb9003219a1869b5a tpudrv12.c: use #if defined() for Compal/Pirelli support like in Magnetite diff -r 4d9af8de3973 -r 91edaae9d4a6 chipsetsw/layer1/tpu_drivers/source0/tpudrv12.c --- 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);