From a0403d3769d3027639e35874c09808ce5c0ba860 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 15 Jan 2020 11:01:24 +0100 Subject: ta_control: move timing advance code from osmo-bts-trx to common The timing advance controller that is implemented in loops.c of osmo-bts-trx only works for osmo-bts-trx and not for any of the phy based bts. Lets move the timing advance controller into the common part and make it available for every bts. Also lets add a unit-test. Change-Id: If7ddf74db3abc9b9872abe620a0aeebe3327e70a Related: SYS#4567 --- include/osmo-bts/Makefile.am | 2 +- include/osmo-bts/phy_link.h | 1 - include/osmo-bts/ta_control.h | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 include/osmo-bts/ta_control.h (limited to 'include') diff --git a/include/osmo-bts/Makefile.am b/include/osmo-bts/Makefile.am index a15ce3d2..668db325 100644 --- a/include/osmo-bts/Makefile.am +++ b/include/osmo-bts/Makefile.am @@ -2,4 +2,4 @@ noinst_HEADERS = abis.h bts.h bts_model.h gsm_data.h gsm_data_shared.h logging.h oml.h paging.h rsl.h signal.h vty.h amr.h pcu_if.h pcuif_proto.h \ handover.h msg_utils.h tx_power.h control_if.h cbch.h l1sap.h \ power_control.h scheduler.h scheduler_backend.h phy_link.h \ - dtx_dl_amr_fsm.h + dtx_dl_amr_fsm.h ta_control.h diff --git a/include/osmo-bts/phy_link.h b/include/osmo-bts/phy_link.h index b2e7c0e2..69c6bd6a 100644 --- a/include/osmo-bts/phy_link.h +++ b/include/osmo-bts/phy_link.h @@ -44,7 +44,6 @@ struct phy_link { uint16_t base_port_local; uint16_t base_port_remote; struct osmo_fd trx_ofd_clk; - bool trx_ta_loop; uint32_t clock_advance; uint32_t rts_advance; bool use_legacy_setbsic; diff --git a/include/osmo-bts/ta_control.h b/include/osmo-bts/ta_control.h new file mode 100644 index 00000000..168f14a7 --- /dev/null +++ b/include/osmo-bts/ta_control.h @@ -0,0 +1,5 @@ +#pragma once + +#include + +void lchan_ms_ta_ctrl(struct gsm_lchan *lchan); -- cgit v1.2.3