FreeCalypso > hg > fc-magnetite
comparison src/cs/layer1/tpu_drivers/source0/tpudrv12.c @ 78:dce31be2b474
use #ifdef instead of #if for FreeCalypso-added preprocessor symbols
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 02 Oct 2016 04:43:59 +0000 |
| parents | 50a15a54801e |
| children | 17d79c62e638 |
comparison
equal
deleted
inserted
replaced
| 77:3b2d13172b6c | 78:dce31be2b474 |
|---|---|
| 173 UWORD16 limit; | 173 UWORD16 limit; |
| 174 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ | 174 UWORD16 rf_chip_band; /* from tpudrv12.obj, not in tpudrv61.c */ |
| 175 T_TX_RX tx_rx[2]; | 175 T_TX_RX tx_rx[2]; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI | 178 #if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI) |
| 179 typedef UWORD16 T_RXTX_UPDOWN; | 179 typedef UWORD16 T_RXTX_UPDOWN; |
| 180 #else | 180 #else |
| 181 typedef UWORD8 T_RXTX_UPDOWN; | 181 typedef UWORD8 T_RXTX_UPDOWN; |
| 182 #endif | 182 #endif |
| 183 | 183 |
| 584 *TP_Ptr++ = TPU_FAT(0x1352); | 584 *TP_Ptr++ = TPU_FAT(0x1352); |
| 585 TSP_TO_ABB(0x80); | 585 TSP_TO_ABB(0x80); |
| 586 *TP_Ptr++ = TPU_FAT(0x1384); | 586 *TP_Ptr++ = TPU_FAT(0x1384); |
| 587 TSP_TO_ABB(0xA0); | 587 TSP_TO_ABB(0xA0); |
| 588 *TP_Ptr++ = TPU_FAT(16); | 588 *TP_Ptr++ = TPU_FAT(16); |
| 589 #if CONFIG_TARGET_COMPAL || CONFIG_TARGET_PIRELLI | 589 #if defined(CONFIG_TARGET_COMPAL) || defined(CONFIG_TARGET_PIRELLI) |
| 590 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 590 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |
| 591 | RF_SER_ON); | 591 | RF_SER_ON); |
| 592 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); | 592 *TP_Ptr++ = TPU_MOVE(TSP_ACTX, rf_path[rf_index].tx_up >> 8); |
| 593 *TP_Ptr++ = TPU_FAT(21); | 593 *TP_Ptr++ = TPU_FAT(21); |
| 594 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF | 594 *TP_Ptr++ = TPU_MOVE(TSP_ACT, rf_path[rf_index].tx_up & 0xFF |
