From 1ec169b7c9604ff70f873b3393d60cc9cd521678 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Wed, 1 Jun 2022 09:06:21 +0100 Subject: MLECO-2968 Create a docker image with all requirements Added a Dockerfile to setup and install requirements for the ml-embedded-evaluation-kit repository. Also included minor change (MLCE-859) for NPU components' source file. Signed-off-by: Matthew Sloyan Change-Id: I621fb2991218a451a0e8c33e14032b9c9e36709e --- source/hal/source/components/npu/ethosu_npu_init.c | 20 ++++++++++---------- .../source/components/npu/include/ethosu_npu_init.h | 6 ++++++ 2 files changed, 16 insertions(+), 10 deletions(-) (limited to 'source') diff --git a/source/hal/source/components/npu/ethosu_npu_init.c b/source/hal/source/components/npu/ethosu_npu_init.c index e24ddd9..701b5de 100644 --- a/source/hal/source/components/npu/ethosu_npu_init.c +++ b/source/hal/source/components/npu/ethosu_npu_init.c @@ -45,16 +45,6 @@ static size_t get_cache_arena_size() #endif /* defined (ETHOS_U_CACHE_BUF_SZ) && (ETHOS_U_CACHE_BUF_SZ > 0) */ } -/** - * @brief Defines the Ethos-U interrupt handler: just a wrapper around the default - * implementation. - **/ -static void arm_ethosu_npu_irq_handler(void) -{ - /* Call the default interrupt handler from the NPU driver */ - ethosu_irq_handler(ðosu_drv); -} - /** * @brief Initialises the NPU IRQ **/ @@ -73,6 +63,16 @@ static void arm_ethosu_npu_irq_init(void) ethosu_irqnum, arm_ethosu_npu_irq_handler); } +/** + * @brief Defines the Ethos-U interrupt handler: just a wrapper around the default + * implementation. + **/ +void arm_ethosu_npu_irq_handler(void) +{ + /* Call the default interrupt handler from the NPU driver */ + ethosu_irq_handler(ðosu_drv); +} + int arm_ethosu_npu_init(void) { int err = 0; diff --git a/source/hal/source/components/npu/include/ethosu_npu_init.h b/source/hal/source/components/npu/include/ethosu_npu_init.h index c562f6c..d1c3992 100644 --- a/source/hal/source/components/npu/include/ethosu_npu_init.h +++ b/source/hal/source/components/npu/include/ethosu_npu_init.h @@ -25,6 +25,12 @@ **/ int arm_ethosu_npu_init(void); +/** + * @brief Defines the Arm Ethos-U NPU interrupt handler: just a wrapper + * around the default implementation. + **/ +void arm_ethosu_npu_irq_handler(void); + #endif /* ARM_NPU */ #endif /* ETHOS_U_NPU_INIT_H */ -- cgit v1.2.1