aboutsummaryrefslogtreecommitdiff
path: root/applications/message_handler/message_handler.hpp
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2022-02-16 13:13:27 +0100
committerDavide Grohmann <davide.grohmann@arm.com>2022-03-31 19:46:15 +0200
commitadc908cb53df1538ce10018b72da3f4534eddd96 (patch)
tree3a0d0e3f1336b382d184adb8baaba7dcb43f4fa3 /applications/message_handler/message_handler.hpp
parentac535f0387647b114826e921d23e68787f8a572b (diff)
downloadethos-u-core-platform-adc908cb53df1538ce10018b72da3f4534eddd96.tar.gz
Ensure message-handler can be compiled without EthosU support
Change-Id: I1ae0b1fa6d3c559afd10772778c16002ae93cc63
Diffstat (limited to 'applications/message_handler/message_handler.hpp')
-rw-r--r--applications/message_handler/message_handler.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/message_handler/message_handler.hpp b/applications/message_handler/message_handler.hpp
index 90b1cd2..13a3c60 100644
--- a/applications/message_handler/message_handler.hpp
+++ b/applications/message_handler/message_handler.hpp
@@ -24,7 +24,9 @@
#include "semphr.h"
#include "message_queue.hpp"
+#if defined(ETHOSU)
#include <ethosu_driver.h>
+#endif
#include <inference_process.hpp>
#include <mailbox.hpp>
@@ -65,8 +67,10 @@ private:
bool getInferenceJob(const EthosU::ethosu_core_inference_req &req, InferenceProcess::InferenceJob &job);
+#if defined(ETHOSU)
friend void ::ethosu_inference_begin(struct ethosu_driver *drv, void *userArg);
friend void ::ethosu_inference_end(struct ethosu_driver *drv, void *userArg);
+#endif
QueueHandle_t inferenceQueue;
QueueHandle_t outputQueue;