Skip to content

Commit

Permalink
New format for passing filter parameters in - no longer on command li…
Browse files Browse the repository at this point in the history
…ne so that it may work with xcc in future
  • Loading branch information
henkmuller committed May 16, 2011
1 parent 0cad700 commit cca7fc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app_example_biquad/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ all: coefficients $(BIN_DIR)/$(APP_NAME).xe

coefficients:
make -f ../../sc_dsp_filters/build_biquad_coefficients/Makefile \
FILTER='-min -12 -max 12 -step 1 -bits 27 -low 15.625 -peaking 31.25 1 -peaking 62.5 1 -peaking 125 1 -peaking 250 1 -peaking 500 1 -peaking 1000 1 -peaking 2000 1 -peaking 4000 1 -high 8000 -h src/coeffs.h -xc src/coeffs.xc -csv bin/response.csv'
FILTER='-min -20 -max 20 -step 1 -bits 27 -low 250 -high 4000' \
INCLUDEFILE=src/coeffs.h \
XCFILE=src/coeffs.xc \
CSVFILE=bin/response.csv

# FILTER='-min -12 -max 12 -step 1 -bits 27 -low 15.625 -peaking 31.25 1 -peaking 62.5 1 -peaking 125 1 -peaking 250 1 -peaking 500 1 -peaking 1000 1 -peaking 2000 1 -peaking 4000 1 -high 8000' \
clean: clean_common
4 changes: 2 additions & 2 deletions build_biquad_coefficients/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
all: ../../sc_dsp_filters/build_biquad_coefficients/src/makeCoeffs.c
cc ../../sc_dsp_filters/build_biquad_coefficients/src/makeCoeffs.c -lm
./a.out $(FILTER)
cc -DFILTER="\"$(FILTER)\"" -DINCLUDEFILE="\"$(INCLUDEFILE)\"" -DXCFILE="\"$(XCFILE)\"" -DCSVFILE="\"$(CSVFILE)\"" ../../sc_dsp_filters/build_biquad_coefficients/src/makeCoeffs.c -lm
./a.out

0 comments on commit cca7fc5

Please sign in to comment.