Commit ed63b704 authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

NN: Integrate CMSIS-NN (CMSIS 5.8.0)



This commit integrates the newly added CMSIS-NN (part of CMSIS 5.8.0
release) component to the Zephyr build system.

Note that the CMake files added in this commit were re-implemented
specifically for Zephyr, and they are therefore different from the
upstream version.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent 6025021d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ add_subdirectory_ifdef(CONFIG_HAS_CMSIS_CORE_A Core_A)
add_subdirectory_ifdef(CONFIG_HAS_CMSIS_CORE_R Core_R)

add_subdirectory_ifdef(CONFIG_CMSIS_DSP        DSP)
add_subdirectory_ifdef(CONFIG_CMSIS_NN         NN)
+7 −0
Original line number Diff line number Diff line
# Copyright (c) 2021, Commonwealth Scientific and Industrial Research
# Organisation (CSIRO) ABN 41 687 119 230.
# SPDX-License-Identifier: Apache-2.0

zephyr_include_directories(Include)

add_subdirectory(Source)
+10 −0
Original line number Diff line number Diff line
# Copyright (c) 2021, Commonwealth Scientific and Industrial Research
# Organisation (CSIRO) ABN 41 687 119 230.
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
  arm_relu_q7.c
  arm_relu6_s8.c
)
+10 −0
Original line number Diff line number Diff line
# Copyright (c) 2021, Commonwealth Scientific and Industrial Research
# Organisation (CSIRO) ABN 41 687 119 230.
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
  arm_elementwise_add_s8.c
  arm_elementwise_mul_s8.c
)
+14 −0
Original line number Diff line number Diff line
# Copyright (c) 2021, Commonwealth Scientific and Industrial Research
# Organisation (CSIRO) ABN 41 687 119 230.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory_ifdef(CONFIG_CMSIS_NN_ACTIVATION         ActivationFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_BASICMATH          BasicMathFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_CONCATENATION      ConcatenationFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_CONVOLUTION        ConvolutionFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_FULLYCONNECTED     FullyConnectedFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_NNSUPPORT          NNSupportFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_POOLING            PoolingFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_RESHAPE            ReshapeFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_SOFTMAX            SoftmaxFunctions)
add_subdirectory_ifdef(CONFIG_CMSIS_NN_SVD                SVDFunctions)
Loading