Skip to content

Commit

Permalink
examples/audiolite_fft: Add an example to explain mkalwcomp.py
Browse files Browse the repository at this point in the history
Add an example for explaining how to use mkalwcomp.py and how to
make user original audiolite component with worker.
  • Loading branch information
SPRESENSE committed Dec 2, 2024
1 parent a111701 commit dd4fa87
Show file tree
Hide file tree
Showing 15 changed files with 1,523 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/audiolite_fft/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/Make.dep
/.depend
/.built
/*.asm
/*.obj
/*.rel
/*.lst
/*.sym
/*.adb
/*.lib
/*.src
/*.spk
26 changes: 26 additions & 0 deletions examples/audiolite_fft/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

config EXAMPLES_AUDIOLITE_FFT
tristate "AudioLite sample : audiolite_fft app"
default n
---help---
Enable the audiolite_fft app. This example includes how to make
user original audiolite component with worker (sub-core) off-load.

if EXAMPLES_AUDIOLITE_FFT

config EXAMPLES_AUDIOLITE_FFT_PROGNAME
string "Program name"
default "audiolite_fft"
---help---
This is the name of the program that will be use when the NSH ELF
program is installed.

config EXAMPLES_AUDIOLITE_FFT_PRIORITY
int "audiolite_fft task priority"
default 100

config EXAMPLES_AUDIOLITE_FFT_STACKSIZE
int "audiolite_fft stack size"
default 2048

endif
4 changes: 4 additions & 0 deletions examples/audiolite_fft/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

ifneq ($(CONFIG_EXAMPLES_AUDIOLITE_FFT),)
CONFIGURED_APPS += audiolite_fft
endif
26 changes: 26 additions & 0 deletions examples/audiolite_fft/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

include $(APPDIR)/Make.defs
include $(SDKDIR)/Make.defs

PROGNAME = $(CONFIG_EXAMPLES_AUDIOLITE_FFT_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_AUDIOLITE_FFT_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_AUDIOLITE_FFT_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_AUDIOLITE_FFT)

ASRCS =
CSRCS =
MAINSRC = audiolite_fft_main.cxx

CXXSRCS += alusr_fftworker.cxx

include $(APPDIR)/Application.mk

build_fftworker_worker:
@$(MAKE) -C fftworker TOPDIR="$(TOPDIR)" SDKDIR="$(SDKDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV)

clean_fftworker_worker:
@$(MAKE) -C fftworker TOPDIR="$(TOPDIR)" SDKDIR="$(SDKDIR)" APPDIR="$(APPDIR)" CROSSDEV=$(CROSSDEV) clean

$(OBJS): build_fftworker_worker

clean:: clean_fftworker_worker
Loading

0 comments on commit dd4fa87

Please sign in to comment.