summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-14 18:12:20 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-14 18:12:20 +0700
commit909c86df29b2018fe602438f90e2d56e3bde48e1 (patch)
treee90ede3970fa4817627eee49da3f0086e13b6d30
parent3d62aa724ea50feeb63bbcc8d5171663ca2b88e6 (diff)
trxcon/scheduler.h: share FRAME_DURATION_uS definition
-rw-r--r--src/host/trxcon/l1ctl.c4
-rw-r--r--src/host/trxcon/sched_clck.c1
-rw-r--r--src/host/trxcon/scheduler.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 1e88f8b4..a8a1289d 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -337,10 +337,10 @@ static int l1ctl_rx_fbsb_req(struct l1ctl_link *l1l, struct msgb *msg)
trx_if_cmd_poweron(l1l->trx);
/* Start FBSB expire timer */
- /* TODO: share FRAME_DURATION_uS=4615 from scheduler.c */
l1l->fbsb_timer.data = l1l;
l1l->fbsb_timer.cb = fbsb_timer_cb;
- osmo_timer_schedule(&l1l->fbsb_timer, 0, timeout * 4615);
+ osmo_timer_schedule(&l1l->fbsb_timer, 0,
+ timeout * FRAME_DURATION_uS);
exit:
msgb_free(msg);
diff --git a/src/host/trxcon/sched_clck.c b/src/host/trxcon/sched_clck.c
index 56b89a25..dab95789 100644
--- a/src/host/trxcon/sched_clck.c
+++ b/src/host/trxcon/sched_clck.c
@@ -43,7 +43,6 @@
#include "trx_if.h"
#include "trxcon.h"
-#define FRAME_DURATION_uS 4615
#define MAX_FN_SKEW 50
#define TRX_LOSS_FRAMES 400
diff --git a/src/host/trxcon/scheduler.h b/src/host/trxcon/scheduler.h
index 6c3a2f20..ddb863f2 100644
--- a/src/host/trxcon/scheduler.h
+++ b/src/host/trxcon/scheduler.h
@@ -5,6 +5,8 @@
#include <osmocom/core/timer.h>
+#define FRAME_DURATION_uS 4615
+
#define GSM_SUPERFRAME (26 * 51)
#define GSM_HYPERFRAME (2048 * GSM_SUPERFRAME)