The DSP library does not provide functions to convert fixed representations (Q7,Q15,Q31) to float or double and viceversa. This commit implements those functions using a shift argument to indicate the number of decimal places. Signed-off-by: Matías Román Camilletti <matias.camilletti@owl-services.com>
15 lines
324 B
CMake
15 lines
324 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(dsp_conversions)
|
|
|
|
target_sources(app PRIVATE
|
|
src/q7.c
|
|
src/q15.c
|
|
src/q31.c
|
|
src/f32.c
|
|
src/f64.c
|
|
)
|
|
|
|
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/tests/lib/cmsis_dsp)
|