summaryrefslogtreecommitdiffstats
path: root/src/host/osmocon/osmocon.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2010-02-23 01:39:44 +0100
committerHarald Welte <laforge@gnumonks.org>2010-02-23 01:44:59 +0100
commitcd1c9d399cfda4a7b7f2497c7e34f06d3ed99786 (patch)
tree6dcbfd308397a46f9b04304e51eea487ca37d558 /src/host/osmocon/osmocon.c
parent1d271dea3f5718ad9511222bd522094f106ad251 (diff)
add osmocon TPU debugger support
Receives TPU RAM from target and prints it to console
Diffstat (limited to 'src/host/osmocon/osmocon.c')
-rw-r--r--src/host/osmocon/osmocon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index e8df925a..6a716064 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -585,6 +585,8 @@ static int register_af_unix(const char *un_path)
return 0;
}
+extern void hdlc_tpudbg_cb(uint8_t dlci, struct msgb *msg);
+
int main(int argc, char **argv)
{
int opt, flags;
@@ -650,6 +652,7 @@ int main(int argc, char **argv)
/* initialize the HDLC layer */
sercomm_init();
sercomm_register_rx_cb(SC_DLCI_CONSOLE, hdlc_console_cb);
+ sercomm_register_rx_cb(SC_DLCI_DEBUG, hdlc_tpudbg_cb);
sercomm_register_rx_cb(SC_DLCI_L1A_L23, hdlc_l1a_cb);
while (1)
bsc_select_main(0);