summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-15 21:41:30 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-15 21:41:30 +0100
commit1d5267e26429b413d26aa2fd5055f95ae64b7dad (patch)
tree8fe7862c5764b4ad3fb938f78a29419ae75a017b
parent184f936f61244dd9c09bdafa2a944af278cacb1a (diff)
Introduce CONFIG_BURST_IND for burst indications
The default build will not include burst_ind support, as it seems to break the FCCH tasks in an unepected way.
-rw-r--r--src/target/firmware/Makefile3
-rw-r--r--src/target/firmware/calypso/dsp.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/target/firmware/Makefile b/src/target/firmware/Makefile
index 2ae2f4d..3b15dc5 100644
--- a/src/target/firmware/Makefile
+++ b/src/target/firmware/Makefile
@@ -134,3 +134,6 @@ INCLUDES=-Iinclude/ -I../../../include -I../../shared/libosmocore/include -I../.
# Uncomment this line if you want to write to flash, including the bootloader.
#CFLAGS += -DCONFIG_FLASH_WRITE_LOADER
+
+# Uncomment this line if you want to use burst_ind for sniffing
+#CFLAGS += -DCONFIG_BURST_IND
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c
index 65454c1..5551e9f 100644
--- a/src/target/firmware/calypso/dsp.c
+++ b/src/target/firmware/calypso/dsp.c
@@ -205,8 +205,10 @@ static void dsp_set_params(int16_t *param_tab, int param_size)
/* Start DSP up to bootloader */
dsp_pre_boot(dsp_bootcode);
+#ifdef CONFIG_BURST_IND
dputs("Installing DSP sniff patch\n");
dsp_bl_upload_sections(dsp_sniffcode);
+#endif
dputs("Setting some dsp_api.ndb values\n");
dsp_api.ndb->d_background_enable = 0;