-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaudio_examples.cmake
92 lines (84 loc) · 2.37 KB
/
audio_examples.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright 2024 NXP
# SPDX-License-Identifier: BSD-3-Clause
if (CONFIG_MCUX_PRJSEG_module.audio_voice.default_config)
mcux_add_configuration(
CC "-DSAI_XFER_QUEUE_SIZE=2"
)
mcux_add_iar_configuration(
LD "--config_def=__stack_size__=0x1000 --config_def=__heap_size__=0x3000 --semihosting"
)
mcux_add_armgcc_configuration(
LD "-Xlinker --defsym=__stack_size__=0x1000 -Xlinker --defsym=__heap_size__=0x1000"
)
endif()
if (CONFIG_MCUX_PRJSEG_module.audio_voice.lpc_config)
mcux_add_configuration(
CC "-DPRINTF_ADVANCED_ENABLE=1 -DPRINTF_FLOAT_ENABLE=1"
)
mcux_add_iar_configuration(
LD "--config_def=__stack_size__=0x1000 --config_def=__heap_size__=0x2500 --semihosting"
)
mcux_add_armgcc_configuration(
LD "-Xlinker --defsym=__stack_size__=0x1000 -Xlinker --defsym=__heap_size__=0x2000"
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_EN_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_EN"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_CN_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_CN"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_DE_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_DE"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_ES_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_ES"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_FR_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_FR"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_IT_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_IT"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_JA_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_JA"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_KO_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_KO"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_PT_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_PT"
TOOLCHAINS armgcc mcux
)
endif()
if (CONFIG_MCUX_PRJSEG_MAESTRO_EXAMPLE_VIT_MODEL_TR_ENABLE)
mcux_add_macro(
CC "-DVIT_MODEL_TR"
TOOLCHAINS armgcc mcux
)
endif()