aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo-bts-litecell15/l1_if.c6
-rw-r--r--src/osmo-bts-litecell15/main.c9
2 files changed, 13 insertions, 2 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c
index 54fd2d3..6d4fc55 100644
--- a/src/osmo-bts-litecell15/l1_if.c
+++ b/src/osmo-bts-litecell15/l1_if.c
@@ -67,6 +67,8 @@
#include "misc/lc15bts_bid.h"
#include "utils.h"
+extern unsigned int dsp_trace;
+
struct wait_l1_conf {
struct llist_head list; /* internal linked list */
struct osmo_timer_list timer; /* timer for L1 timeout */
@@ -1397,6 +1399,10 @@ int bts_model_phy_link_open(struct phy_link *plink)
return -EIO;
}
+
+ struct lc15l1_hdl *fl1h = pinst->u.lc15.hdl;
+ fl1h->dsp_trace_f = dsp_trace;
+
l1if_reset(pinst->u.lc15.hdl);
phy_link_state_set(plink, PHY_LINK_CONNECTED);
diff --git a/src/osmo-bts-litecell15/main.c b/src/osmo-bts-litecell15/main.c
index ef132f8..2aaacd3 100644
--- a/src/osmo-bts-litecell15/main.c
+++ b/src/osmo-bts-litecell15/main.c
@@ -60,6 +60,8 @@
#include "oml_router.h"
#include "misc/lc15bts_bid.h"
+unsigned int dsp_trace = 0x00000000;
+
int bts_model_init(struct gsm_bts *bts)
{
struct gsm_bts_trx *trx;
@@ -133,8 +135,8 @@ void bts_update_status(enum bts_global_status which, int on)
void bts_model_print_help()
{
printf( " -w --hw-version Print the targeted HW Version\n"
- " -M --pcu-direct Force PCU to access message queue for "
- "PDCH dchannel directly\n"
+ " -M --pcu-direct Force PCU to access message queue for PDCH dchannel directly\n"
+ " -p --dsp-trace Set DSP trace flags\n"
);
}
@@ -180,6 +182,9 @@ int bts_model_handle_options(int argc, char **argv)
break;
switch (c) {
+ case 'p':
+ dsp_trace = strtoul(optarg, NULL, 16);
+ break;
case 'M':
pcu_direct = 1;
break;