Line data Source code
1 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 ZEPHYR_INCLUDE_DSP_DSP_H_
12 : #define ZEPHYR_INCLUDE_DSP_DSP_H_
13 :
14 : #ifdef CONFIG_DSP_BACKEND_HAS_STATIC
15 : #define DSP_FUNC_SCOPE static
16 : #else
17 0 : #define DSP_FUNC_SCOPE
18 : #endif
19 :
20 : #ifdef CONFIG_DSP_BACKEND_HAS_AGU
21 : #define DSP_DATA __agu
22 : #else
23 0 : #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 0 : #define DSP_STATIC_DATA DSP_DATA
30 : #endif
31 :
32 : /**
33 : * @brief DSP Interface
34 : * @defgroup math_dsp DSP Interface
35 : * @since 3.3
36 : * @version 0.1.0
37 : */
38 :
39 : #include <zephyr/dsp/types.h>
40 :
41 : #include <zephyr/dsp/basicmath.h>
42 :
43 : #include <zephyr/dsp/print_format.h>
44 :
45 : #include "zdsp_backend.h"
46 :
47 : #endif /* ZEPHYR_INCLUDE_DSP_DSP_H_ */
|