Skip to content

Commit fdae4d2

Browse files
rruuaanngnashif
authored andcommitted
include: zephyr: dsp: Inconsistent macro names changed
Fix incorrect header file pre-macro names in include/zephyr/dsp. Signed-off-by: James Roy <[email protected]>
1 parent 497aa66 commit fdae4d2

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

include/zephyr/dsp/basicmath.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @brief Public APIs for DSP basicmath
99
*/
1010

11-
#ifndef INCLUDE_ZEPHYR_DSP_BASICMATH_H_
12-
#define INCLUDE_ZEPHYR_DSP_BASICMATH_H_
11+
#ifndef ZEPHYR_INCLUDE_DSP_BASICMATH_H_
12+
#define ZEPHYR_INCLUDE_DSP_BASICMATH_H_
1313

1414
#include <zephyr/dsp/dsp.h>
1515

@@ -929,4 +929,4 @@ DSP_FUNC_SCOPE void zdsp_clip_q7(const DSP_DATA q7_t *src, DSP_DATA q7_t *dst, q
929929
#include <zephyr/dsp/basicmath_f16.h>
930930
#endif /* CONFIG_FP16 */
931931

932-
#endif /* INCLUDE_ZEPHYR_DSP_BASICMATH_H_ */
932+
#endif /* ZEPHYR_INCLUDE_DSP_BASICMATH_H_ */

include/zephyr/dsp/basicmath_f16.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @brief Public APIs for DSP basicmath for 16 bit floating point
99
*/
1010

11-
#ifndef INCLUDE_ZEPHYR_DSP_BASICMATH_F16_H_
12-
#define INCLUDE_ZEPHYR_DSP_BASICMATH_F16_H_
11+
#ifndef ZEPHYR_INCLUDE_DSP_BASICMATH_F16_H_
12+
#define ZEPHYR_INCLUDE_DSP_BASICMATH_F16_H_
1313

1414
#ifndef CONFIG_FP16
1515
#error "Cannot use float16 DSP functionality without CONFIG_FP16 enabled"
@@ -121,4 +121,4 @@ DSP_FUNC_SCOPE void zdsp_clip_f16(const float16_t *src, float16_t *dst, float16_
121121
}
122122
#endif
123123

124-
#endif /* INCLUDE_ZEPHYR_DSP_BASICMATH_F16_H_ */
124+
#endif /* ZEPHYR_INCLUDE_DSP_BASICMATH_F16_H_ */

include/zephyr/dsp/dsp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @brief Public APIs for Digital Signal Processing (DSP) math.
99
*/
1010

11-
#ifndef INCLUDE_ZEPHYR_DSP_DSP_H_
12-
#define INCLUDE_ZEPHYR_DSP_DSP_H_
11+
#ifndef ZEPHYR_INCLUDE_DSP_DSP_H_
12+
#define ZEPHYR_INCLUDE_DSP_DSP_H_
1313

1414
#ifdef CONFIG_DSP_BACKEND_HAS_STATIC
1515
#define DSP_FUNC_SCOPE static
@@ -44,4 +44,4 @@
4444

4545
#include "zdsp_backend.h"
4646

47-
#endif /* INCLUDE_ZEPHYR_DSP_DSP_H_ */
47+
#endif /* ZEPHYR_INCLUDE_DSP_DSP_H_ */

include/zephyr/dsp/print_format.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* SPDX-License-Identifier: Apache-2.0
33
*/
44

5-
#ifndef ZEPHYR_INCLUDE_ZEPHYR_DSP_PRINT_FORMAT_H
6-
#define ZEPHYR_INCLUDE_ZEPHYR_DSP_PRINT_FORMAT_H
5+
#ifndef ZEPHYR_INCLUDE_DSP_PRINT_FORMAT_H_
6+
#define ZEPHYR_INCLUDE_DSP_PRINT_FORMAT_H_
77

88
#include <inttypes.h>
99
#include <stdlib.h>
@@ -63,4 +63,4 @@ static inline int64_t ___PRIq_arg_shift(int64_t q, int shift)
6363
* @}
6464
*/
6565

66-
#endif /* ZEPHYR_INCLUDE_ZEPHYR_DSP_PRINT_FORMAT_H */
66+
#endif /* ZEPHYR_INCLUDE_DSP_PRINT_FORMAT_H_ */

include/zephyr/dsp/types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* SPDX-License-Identifier: Apache-2.0
33
*/
44

5-
#ifndef INCLUDE_ZEPHYR_DSP_TYPES_H_
6-
#define INCLUDE_ZEPHYR_DSP_TYPES_H_
5+
#ifndef ZEPHYR_INCLUDE_DSP_TYPES_H_
6+
#define ZEPHYR_INCLUDE_DSP_TYPES_H_
77

88
#include <stdint.h>
99

@@ -68,4 +68,4 @@ typedef double float64_t;
6868
* @}
6969
*/
7070

71-
#endif /* INCLUDE_ZEPHYR_DSP_TYPES_H_ */
71+
#endif /* ZEPHYR_INCLUDE_DSP_TYPES_H_ */

0 commit comments

Comments
 (0)