CMSIS-DSP: Customization of FFT tables.
Compilation symbols have been introduced to allow to include only the FFT tables which are useful in a given application. The README.md in DSP is giving more details.pull/19/head
parent
de626e2391
commit
080b994dd7
@ -0,0 +1,16 @@
|
||||
REM Example cmake command.
|
||||
cmake -DBASICMATH=OFF ^
|
||||
-DCOMPLEXMATH=OFF ^
|
||||
-DCONTROLLER=OFF ^
|
||||
-DFASTMATH=OFF ^
|
||||
-DFILTERING=ON ^
|
||||
-DMATRIX=OFF ^
|
||||
-DSTATISTICS=OFF ^
|
||||
-DSUPPORT=OFF ^
|
||||
-DTRANSFORM=OFF ^
|
||||
-DCONFIGTABLE=ON ^
|
||||
-DARM_LMS_NORM_Q15=ON ^
|
||||
-DCMAKE_TOOLCHAIN_FILE=../../../../armcc.cmake ^
|
||||
-DNEON=ON ^
|
||||
-DARM_CPU="cortex-a5" ^
|
||||
-G "Unix Makefiles" ..
|
||||
@ -0,0 +1,6 @@
|
||||
REM Example commands to run on ArmDS FVP
|
||||
|
||||
REM "C:\Program Files\ARM\Development Studio 2019.0\sw\models\bin\FVP_MPS2_Cortex-M7.exe" -a arm_variance_example
|
||||
|
||||
"C:\Program Files\ARM\Development Studio 2019.0\sw\models\bin\FVP_VE_Cortex-A5x1.exe" -a arm_variance_example
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPBasicMath)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPBasicMath STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPBasicMath ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPBasicMath PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPCommon)
|
||||
|
||||
|
||||
|
||||
add_library(CMSISDSPCommon STATIC arm_common_tables.c)
|
||||
|
||||
if (CONFIGTABLE AND ALLFFT)
|
||||
target_compile_definitions(CMSISDSPCommon PUBLIC ARM_ALL_FFT_TABLES)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ALLFAST)
|
||||
target_compile_definitions(CMSISDSPCommon PUBLIC ARM_ALL_FAST_TABLES)
|
||||
endif()
|
||||
|
||||
include(fft)
|
||||
fft(CMSISDSPCommon)
|
||||
|
||||
include(interpol)
|
||||
interpol(CMSISDSPCommon)
|
||||
|
||||
target_sources(CMSISDSPCommon PRIVATE arm_const_structs.c)
|
||||
|
||||
configdsp(CMSISDSPCommon ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPCommon PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPComplexMath)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPComplexMath STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPComplexMath ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPComplexMath PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPController)
|
||||
|
||||
|
||||
add_library(CMSISDSPController STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPController ..)
|
||||
|
||||
include(interpol)
|
||||
interpol(CMSISDSPController)
|
||||
|
||||
if (CONFIGTABLE AND ALLFAST)
|
||||
target_compile_definitions(CMSISDSPController PUBLIC ARM_ALL_FAST_TABLES)
|
||||
endif()
|
||||
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_init_f32.c)
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_init_q15.c)
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_init_q31.c)
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_reset_f32.c)
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_reset_q15.c)
|
||||
target_sources(CMSISDSPController PRIVATE arm_pid_reset_q31.c)
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_F32)
|
||||
target_sources(CMSISDSPController PRIVATE arm_sin_cos_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_Q31)
|
||||
target_sources(CMSISDSPController PRIVATE arm_sin_cos_q31.c)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPController PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,51 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPFastMath)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPFastMath STATIC)
|
||||
|
||||
include(interpol)
|
||||
interpol(CMSISDSPFastMath)
|
||||
|
||||
if (CONFIGTABLE AND ALLFAST)
|
||||
target_compile_definitions(CMSISDSPFastMath PUBLIC ARM_ALL_FAST_TABLES)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_F32)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_cos_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q15)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_cos_q15.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q31)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_cos_q31.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_F32)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_sin_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q15)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_sin_q15.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q31)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_sin_q31.c)
|
||||
endif()
|
||||
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_sqrt_q15.c)
|
||||
target_sources(CMSISDSPFastMath PRIVATE arm_sqrt_q31.c)
|
||||
|
||||
|
||||
configdsp(CMSISDSPFastMath ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPFastMath PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,128 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPFiltering)
|
||||
|
||||
|
||||
add_library(CMSISDSPFiltering STATIC ${SRC})
|
||||
|
||||
include(interpol)
|
||||
interpol(CMSISDSPFiltering)
|
||||
|
||||
configdsp(CMSISDSPFiltering ..)
|
||||
|
||||
if (CONFIGTABLE AND ALLFAST)
|
||||
target_compile_definitions(CMSISDSPFiltering PUBLIC ARM_ALL_FAST_TABLES)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_LMS_NORM_Q31)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_init_q31.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFAST OR ARM_LMS_NORM_Q15)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_init_q15.c)
|
||||
endif()
|
||||
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_32x64_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_32x64_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df1_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df2T_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df2T_f64.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df2T_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_df2T_init_f64.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_stereo_df2T_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_biquad_cascade_stereo_df2T_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_fast_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_opt_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_fast_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_opt_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_partial_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_conv_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_fast_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_opt_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_opt_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_correlate_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_decimate_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_fast_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_fast_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_init_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_interpolate_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_lattice_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_init_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_fir_sparse_q7.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_iir_lattice_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_init_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_init_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_init_f32.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_norm_q31.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_q15.c)
|
||||
target_sources(CMSISDSPFiltering PRIVATE arm_lms_q31.c)
|
||||
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPFiltering PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPMatrix)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPMatrix STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPMatrix ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPMatrix PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPStatistics)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPStatistics STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPStatistics ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPStatistics PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPSupport)
|
||||
|
||||
|
||||
file(GLOB SRC "./*_*.c")
|
||||
|
||||
add_library(CMSISDSPSupport STATIC ${SRC})
|
||||
|
||||
configdsp(CMSISDSPSupport ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPSupport PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,112 @@
|
||||
cmake_minimum_required (VERSION 3.6)
|
||||
|
||||
project(CMSISDSPTransform)
|
||||
|
||||
|
||||
|
||||
add_library(CMSISDSPTransform STATIC)
|
||||
|
||||
include(fft)
|
||||
fft(CMSISDSPTransform)
|
||||
|
||||
if (CONFIGTABLE AND ALLFFT)
|
||||
target_compile_definitions(CMSISDSPTransform PUBLIC ARM_ALL_FFT_TABLES)
|
||||
endif()
|
||||
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_bitreversal.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_bitreversal2.c)
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR CFFT_F32_16 OR CFFT_F32_32 OR CFFT_F32_64 OR CFFT_F32_128 OR CFFT_F32_256 OR CFFT_F32_512
|
||||
OR CFFT_F32_1024 OR CFFT_F32_2048 OR CFFT_F32_4096)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix2_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix8_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR CFFT_Q15_16 OR CFFT_Q15_32 OR CFFT_Q15_64 OR CFFT_Q15_128 OR CFFT_Q15_256 OR CFFT_Q15_512
|
||||
OR CFFT_Q15_1024 OR CFFT_Q15_2048 OR CFFT_Q15_4096)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix2_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q15.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR CFFT_Q31_16 OR CFFT_Q31_32 OR CFFT_Q31_64 OR CFFT_Q31_128 OR CFFT_Q31_256 OR CFFT_Q31_512
|
||||
OR CFFT_Q31_1024 OR CFFT_Q31_2048 OR CFFT_Q31_4096)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix2_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q31.c)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR DCT4_F32_128 OR DCT4_F32_512 OR DCT4_F32_2048 OR DCT4_F32_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_init_f32.c)
|
||||
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_init_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR DCT4_Q31_128 OR DCT4_Q31_512 OR DCT4_Q31_2048 OR DCT4_Q31_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_init_q31.c)
|
||||
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_init_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q31.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR ALLFFT OR DCT4_Q15_128 OR DCT4_Q15_512 OR DCT4_Q15_2048 OR DCT4_Q15_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_init_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_dct4_q15.c)
|
||||
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_init_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q15.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR RFFT_FAST_F32_32 OR RFFT_FAST_F32_64 OR RFFT_FAST_F32_128
|
||||
OR RFFT_FAST_F32_256 OR RFFT_FAST_F32_512 OR RFFT_FAST_F32_1024 OR RFFT_FAST_F32_2048
|
||||
OR RFFT_FAST_F32_4096 )
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_fast_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_fast_init_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix8_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR RFFT_F32_128 OR RFFT_F32_512 OR RFFT_F32_2048 OR RFFT_F32_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_init_f32.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_f32.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR RFFT_Q15_32 OR RFFT_Q15_64 OR RFFT_Q15_128 OR RFFT_Q15_256
|
||||
OR RFFT_Q15_512 OR RFFT_Q15_1024 OR RFFT_Q15_2048 OR RFFT_Q15_4096 OR RFFT_Q15_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q15.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q15.c)
|
||||
endif()
|
||||
|
||||
if (NOT CONFIGTABLE OR ALLFFT OR RFFT_Q31_32 OR RFFT_Q31_64 OR RFFT_Q31_128 OR RFFT_Q31_256
|
||||
OR RFFT_Q31_512 OR RFFT_Q31_1024 OR RFFT_Q31_2048 OR RFFT_Q31_4096 OR RFFT_Q31_8192)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_rfft_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_q31.c)
|
||||
target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix4_q31.c)
|
||||
endif()
|
||||
|
||||
configdsp(CMSISDSPTransform ..)
|
||||
|
||||
### Includes
|
||||
target_include_directories(CMSISDSPTransform PUBLIC "${DSP}/../../Include")
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,523 @@
|
||||
function(fft PROJECT)
|
||||
#######################################
|
||||
#
|
||||
# CFFT F32
|
||||
#
|
||||
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_2048)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_F32_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# CFFT Q31
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q31_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# CFFT Q15
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND CFFT_Q15_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# RFFT FAST F32
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_FAST_F32_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FLT_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_RFFT_F32_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_2048)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# RFFT F32
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_F32_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# RFFT Q31
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q31_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# RFFT FAST Q15
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_16)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_16)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_64)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_64)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_128)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_256)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_256)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_512)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_1024)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_2048)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND RFFT_Q15_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREVIDX_FXT_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# DCT4 F32
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND DCT4_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_F32_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_F32_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_F32)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# DCT4 Q31
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q31_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q31_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q31)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
|
||||
endif()
|
||||
|
||||
#######################################
|
||||
#
|
||||
# DCT4 Q15
|
||||
#
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_128)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_512)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_2048)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND DCT4_Q15_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_DCT4_Q15_8192)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_REALCOEF_Q15)
|
||||
|
||||
# For cfft_radix4_init
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_BITREV_1024)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
@ -0,0 +1,43 @@
|
||||
function(interpol PROJECT)
|
||||
|
||||
if (CONFIGTABLE AND ARM_COS_F32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_COS_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_COS_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q15)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_SIN_F32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_SIN_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_SIN_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q15)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_SIN_COS_F32)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_F32)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_SIN_COS_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_SIN_Q31)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_LMS_NORM_Q31)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_RECIP_Q31)
|
||||
endif()
|
||||
|
||||
if (CONFIGTABLE AND ARM_LMS_NORM_Q15)
|
||||
target_compile_definitions(${PROJECT} PUBLIC ARM_TABLE_RECIP_Q15)
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
Loading…
Reference in New Issue