Introduce an API mirroring the CMSIS-DSP's basicmath. If CMSIS_DSP is enabled, then it will by default be used as a backend. Developers may opt into a custom backend by setting CONFIG_DSP_BACKEND_CMSIS=n. If done, the application must provide `zdsp_backend/dsp.h` and optionally implement the functions in its own .c files. Signed-off-by: Yuval Peress <peress@google.com>
26 lines
765 B
Text
26 lines
765 B
Text
# Copyright (c) 2022 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config DSP_BACKEND_HAS_STATIC
|
|
bool
|
|
|
|
choice DSP_BACKEND
|
|
prompt "DSP library backend selection"
|
|
default DSP_BACKEND_CMSIS if CMSIS_DSP
|
|
default DSP_BACKEND_CUSTOM
|
|
|
|
config DSP_BACKEND_CMSIS
|
|
bool "Use the CMSIS-DSP library as the math backend"
|
|
depends on CMSIS_DSP
|
|
select DSP_BACKEND_HAS_STATIC
|
|
help
|
|
Implement the various zephyr DSP functions using the CMSIS-DSP library. This feature
|
|
requires the CMSIS module to be selected.
|
|
|
|
config DSP_BACKEND_CUSTOM
|
|
bool "Do not use any Zephyr backends for DSP"
|
|
help
|
|
Rely on the application to provide a custom DSP backend. The implementation should be
|
|
added to the 'zdsp' build target by the application or one of its modules.
|
|
|
|
endchoice
|