diff options
author | rihab kouki <rihab.kouki@st.com> | 2020-07-28 11:24:49 +0100 |
---|---|---|
committer | rihab kouki <rihab.kouki@st.com> | 2020-07-28 11:24:49 +0100 |
commit | 96d6da4e252b06dcfdc041e7df23e86161c33007 (patch) | |
tree | a262f59bb1db7ec7819acae435f5049cbe5e2354 /DSP/interpol.cmake | |
parent | 9f95ff5b6ba01db09552b84a0ab79607060a2666 (diff) | |
download | st-cmsis-core-lowfat-96d6da4e252b06dcfdc041e7df23e86161c33007.tar.gz st-cmsis-core-lowfat-96d6da4e252b06dcfdc041e7df23e86161c33007.tar.bz2 st-cmsis-core-lowfat-96d6da4e252b06dcfdc041e7df23e86161c33007.zip |
Diffstat (limited to 'DSP/interpol.cmake')
-rw-r--r-- | DSP/interpol.cmake | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/DSP/interpol.cmake b/DSP/interpol.cmake new file mode 100644 index 0000000..80282cf --- /dev/null +++ b/DSP/interpol.cmake @@ -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()
\ No newline at end of file |