aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-07 11:16:00 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-06-09 20:02:49 +0200
commit5646fc1be9cb636c1b4771d9a21a18ccacd59c5f (patch)
tree96e2c0c8656c9cc05cbac9537e299b171ec14b26
parent56bb7ff569748f8841893cdfb19d821798587349 (diff)
sysmobts: Catch up with the API changes and specify the version
API revision 5.1 allows us to pass a version number for the rx/tx calibration and the DSP/FPGA will inform us about clock errors.
-rw-r--r--src/osmo-bts-sysmo/calib_file.c12
-rw-r--r--src/osmo-bts-sysmo/femtobts.c3
2 files changed, 15 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/calib_file.c b/src/osmo-bts-sysmo/calib_file.c
index 476d796..884643f 100644
--- a/src/osmo-bts-sysmo/calib_file.c
+++ b/src/osmo-bts-sysmo/calib_file.c
@@ -334,6 +334,12 @@ static int calib_eeprom_read(const struct calib_file_desc *desc, SuperFemto_Prim
for (i = 0; i < ARRAY_SIZE(rx->u16IqImbalCorr); i++)
rx->u16IqImbalCorr[i] = rx_cal.u16IqImbalCorr[i];
}
+#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(5,1,0)
+ rx->u8DspMajVer = rx_cal.u8DspMajVer;
+ rx->u8DspMinVer = rx_cal.u8DspMinVer;
+ rx->u8FpgaMajVer = rx_cal.u8FpgaMajVer;
+ rx->u8FpgaMinVer = rx_cal.u8FpgaMinVer;
+#endif
} else {
SuperFemto_SetTxCalibTblReq_t *tx = &prim->u.setTxCalibTblReq;
eeprom_TxCal_t tx_cal;
@@ -361,6 +367,12 @@ static int calib_eeprom_read(const struct calib_file_desc *desc, SuperFemto_Prim
for (i = 0; i < arrsize_by_band[desc->band]; i++)
tx->fTxRollOffCorr[i] = tx_cal.fTxRollOffCorr[i];
+#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(5,1,0)
+ tx->u8DspMajVer = tx_cal.u8DspMajVer;
+ tx->u8DspMinVer = tx_cal.u8DspMinVer;
+ tx->u8FpgaMajVer = tx_cal.u8FpgaMajVer;
+ tx->u8FpgaMinVer = tx_cal.u8FpgaMinVer;
+#endif
}
#endif
diff --git a/src/osmo-bts-sysmo/femtobts.c b/src/osmo-bts-sysmo/femtobts.c
index da165c5..480fe06 100644
--- a/src/osmo-bts-sysmo/femtobts.c
+++ b/src/osmo-bts-sysmo/femtobts.c
@@ -224,6 +224,9 @@ const struct value_string femtobts_l1status_names[GSML1_STATUS_NUM+1] = {
{ GsmL1_Status_TxBurstFifoUndr, "FIFO underrun" },
{ GsmL1_Status_NotSynchronized, "Not synchronized" },
{ GsmL1_Status_Unsupported, "Unsupported feature" },
+#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(5,1,0)
+ { GsmL1_Status_ClockError, "Clock error" },
+#endif
{ 0, NULL }
};