aboutsummaryrefslogtreecommitdiff
path: root/tflite_micro.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tflite_micro.cmake')
-rw-r--r--tflite_micro.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/tflite_micro.cmake b/tflite_micro.cmake
index a93bf33..d0e0c9d 100644
--- a/tflite_micro.cmake
+++ b/tflite_micro.cmake
@@ -161,6 +161,15 @@ tensorflow_target_sources_glob(tflu GLOB TRUE
target_include_directories(tflu PRIVATE
${TFLU_PATH}/cortex_m_generic)
+# For DWT/PMU counters
+target_link_libraries(tflu PRIVATE cmsis_device)
+target_compile_definitions(tflu PRIVATE ${ARM_CPU})
+
+if("${ARM_CPU}" STREQUAL "ARMCM55")
+ target_compile_definitions(tflu PRIVATE
+ ARM_MODEL_USE_PMU_COUNTERS)
+endif()
+
#############################################################################
# Tensorflow micro lite
#############################################################################