Skip to content

Commit 21128de

Browse files
committed
Merge branch 'dr-sinusoidal' of github.com:drowe67/codec2 into dr-sinusoidal
2 parents a3dc074 + a61df66 commit 21128de

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

stm32/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ ${CODEC2_SRC}/phi0.c
188188
${CODEC2_SRC}/HRAb_396_504.c
189189
codebook.c
190190
codebookd.c
191-
codebookjvm.c
191+
codebookjmv.c
192192
codebookge.c
193193
codebooknewamp1_energy.c
194194
codebooknewamp1.c

stm32/cmake/gencodebooks.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ set(CODEBOOKSD
3434
${D}/dlsp10.txt
3535
)
3636

37-
set(CODEBOOKSJVM
38-
${D}/lspjvm1.txt
39-
${D}/lspjvm2.txt
40-
${D}/lspjvm3.txt
37+
set(CODEBOOKSJMV
38+
${D}/lspjmv1.txt
39+
${D}/lspjmv2.txt
40+
${D}/lspjmv3.txt
4141
)
4242

4343
set(CODEBOOKSMEL
@@ -114,11 +114,11 @@ add_custom_command(
114114
DEPENDS generate_codebook ${CODEBOOKSD}
115115
)
116116

117-
# codebookjvm.c
117+
# codebookjmv.c
118118
add_custom_command(
119-
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/codebookjvm.c
120-
COMMAND generate_codebook lsp_cbjvm ${CODEBOOKSJVM} > ${CMAKE_CURRENT_BINARY_DIR}/codebookjvm.c
121-
DEPENDS generate_codebook ${CODEBOOKSJVM}
119+
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/codebookjmv.c
120+
COMMAND generate_codebook lsp_cbjmv ${CODEBOOKSJMV} > ${CMAKE_CURRENT_BINARY_DIR}/codebookjmv.c
121+
DEPENDS generate_codebook ${CODEBOOKSJMV}
122122
)
123123

124124

stm32/unittest/scripts/tst_api_demod_setup

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ case "${TEST_OPT}" in
4949
> setup.log 2>&1
5050
freedv_tx 700D spch_in.raw mod_bits.raw --testframes --txbpf 0 \
5151
>> setup.log 2>&1
52-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -5 2>&1 | tee setup.log
52+
ch mod_bits.raw stm_in.raw --No -20 -f -5 2>&1 | tee setup.log
5353

5454
# Reference: - When the OFDM modem initially syncs, it often
5555
# has residual freq offset that causes abnormally
@@ -80,7 +80,7 @@ case "${TEST_OPT}" in
8080
>> setup.log 2>&1
8181
#
8282
# Reference - give it a hard time with some noise to exercise the LDPC codec and get us to max CPU
83-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -5 2>&1 | tee setup.log
83+
ch mod_bits.raw stm_in.raw -20 -f -5 2>&1 | tee setup.log
8484
freedv_rx 700D stm_in.raw ref_demod.raw -v \
8585
> ref_gen.log 2>&1
8686
;;
@@ -109,7 +109,7 @@ case "${TEST_OPT}" in
109109
> setup.log 2>&1
110110
freedv_tx 700E spch_in.raw mod_bits.raw --testframes --txbpf 1 \
111111
>> setup.log 2>&1
112-
cohpsk_ch mod_bits.raw stm_in.raw -22 --Fs 8000 -f -5 2>&1 | tee setup.log
112+
ch mod_bits.raw stm_in.raw --No -22 -f -5 2>&1 | tee setup.log
113113

114114
freedv_rx 700E stm_in.raw ref_demod.raw -v --testframes 2>&1 --discard | tee ref_gen.log
115115
;;
@@ -125,7 +125,7 @@ case "${TEST_OPT}" in
125125
>> setup.log 2>&1
126126
#
127127
# Reference - give it a hard time with some noise to exercise the LDPC codec and get us to max CPU
128-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -5 2>&1 | tee setup.log
128+
ch mod_bits.raw stm_in.raw --No -20 -f -5 2>&1 | tee setup.log
129129
freedv_rx 700E stm_in.raw ref_demod.raw -v \
130130
> ref_gen.log 2>&1
131131
;;

stm32/unittest/scripts/tst_ofdm_demod_setup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash -x
22
#
33
# tst_ofdm_demod_setup
44
#
@@ -54,7 +54,7 @@ case "${TEST_OPT}" in
5454
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
5555
echo "11000000" > stm_cfg.txt
5656
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 60 > setup.log 2>&1
57-
cohpsk_ch mod_bits.raw stm_in.raw -24.5 --Fs 8000 -f -10 --mpp \
57+
ch mod_bits.raw stm_in.raw --No -24.5 -f -10 --mpp \
5858
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
5959
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
6060
--testframes --verbose 1 > ref_gen_log.txt 2>&1
@@ -64,7 +64,7 @@ case "${TEST_OPT}" in
6464
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
6565
echo "00001000" > stm_cfg.txt
6666
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 100 > setup.log 2>&1
67-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 --mpp \
67+
ch mod_bits.raw stm_in.raw --No -20 -f -10 --mpp \
6868
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
6969
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
7070
--testframes --verbose 1 > ref_gen_log.txt 2>&1
@@ -82,7 +82,7 @@ case "${TEST_OPT}" in
8282
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
8383
echo "01110000" > stm_cfg.txt
8484
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 30 --ldpc 1 > setup.log 2>&1
85-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 >> setup.log 2>&1
85+
ch mod_bits.raw stm_in.raw --No -20 -f -10 >> setup.log 2>&1
8686
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
8787
--testframes --ldpc 1 --verbose 1 > ref_gen_log.txt 2>&1
8888
;;
@@ -91,7 +91,7 @@ case "${TEST_OPT}" in
9191
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
9292
echo "01110000" > stm_cfg.txt
9393
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 120 --ldpc 1 > setup.log 2>&1
94-
cohpsk_ch mod_bits.raw stm_in.raw -30 --Fs 8000 -f -10 --mpp \
94+
ch mod_bits.raw stm_in.raw --No -30 -f -10 --mpp \
9595
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
9696
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
9797
--testframes --ldpc 1 --verbose 1 > ref_gen_log.txt 2>&1;

0 commit comments

Comments
 (0)