diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2022-02-16 13:13:27 +0100 |
---|---|---|
committer | Davide Grohmann <davide.grohmann@arm.com> | 2022-03-31 19:46:15 +0200 |
commit | adc908cb53df1538ce10018b72da3f4534eddd96 (patch) | |
tree | 3a0d0e3f1336b382d184adb8baaba7dcb43f4fa3 /applications/message_handler/message_handler.hpp | |
parent | ac535f0387647b114826e921d23e68787f8a572b (diff) | |
download | ethos-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.hpp | 4 |
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; |