1 /* Copyright (c) 2022 Google LLC 2 * SPDX-License-Identifier: Apache-2.0 3 */ 4 5 /** 6 * @file zephyr/dsp/dsp.h 7 * 8 * @brief Public APIs for Digital Signal Processing (DSP) math. 9 */ 10 11 #ifndef INCLUDE_ZEPHYR_DSP_DSP_H_ 12 #define INCLUDE_ZEPHYR_DSP_DSP_H_ 13 14 #ifdef CONFIG_DSP_BACKEND_HAS_STATIC 15 #define DSP_FUNC_SCOPE static 16 #else 17 #define DSP_FUNC_SCOPE 18 #endif 19 20 #ifdef CONFIG_DSP_BACKEND_HAS_AGU 21 #define DSP_DATA __agu 22 #else 23 #define DSP_DATA 24 #endif 25 26 #ifdef CONFIG_DSP_BACKEND_HAS_XDATA_SECTION 27 #define DSP_STATIC_DATA DSP_DATA __attribute__((section(".Xdata"))) 28 #else 29 #define DSP_STATIC_DATA DSP_DATA 30 #endif 31 32 /** 33 * @brief DSP Interface 34 * @defgroup math_dsp DSP Interface 35 */ 36 37 #include <zephyr/dsp/types.h> 38 39 #include <zephyr/dsp/basicmath.h> 40 41 #include <zephyr/dsp/print_format.h> 42 43 #include "zdsp_backend.h" 44 45 #endif /* INCLUDE_ZEPHYR_DSP_DSP_H_ */ 46