This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged.
Change subject: LC15: Bring back DSP trace argument
......................................................................
LC15: Bring back DSP trace argument
Change-Id: I822651d9ba4959ce5885a2c0362f1ea583b724da
---
M src/osmo-bts-litecell15/l1_if.c
M src/osmo-bts-litecell15/main.c
2 files changed, 13 insertions(+), 2 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
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 @@
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_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 @@
break;
switch (c) {
+ case 'p':
+ dsp_trace = strtoul(optarg, NULL, 16);
+ break;
case 'M':
pcu_direct = 1;
break;
--
To view, visit https://gerrit.osmocom.org/236
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I822651d9ba4959ce5885a2c0362f1ea583b724da
Gerrit-PatchSet: 3
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>