diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-05-19 10:30:06 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2021-05-19 10:47:59 +0100 |
commit | 659fcd951ac18d1ee7737a6ddf6a3ec162c73ca5 (patch) | |
tree | 091232857b7ce8a52a7656424db4e4536b45cc7b /source/application/hal/hal.c | |
parent | a3d87702b743e4e2d2ef08f0210445b01a86c87c (diff) | |
download | ml-embedded-evaluation-kit-659fcd951ac18d1ee7737a6ddf6a3ec162c73ca5.tar.gz |
MLECO-1933, MLECO-1914, MLECO-1885: Update to 21.05-rc2 components
Core driver and sofware dependencies updated to latest release
candidate revisions. Note: TensorFlow Lite Micro has not been
updated.
Also, gcc warnings for simple_platform target and ad use case have
been fixed.
Change-Id: I455b421f34375a719a941e6e220fe292a57613f5
Diffstat (limited to 'source/application/hal/hal.c')
-rw-r--r-- | source/application/hal/hal.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/application/hal/hal.c b/source/application/hal/hal.c index 9c2ce32..2ce2684 100644 --- a/source/application/hal/hal.c +++ b/source/application/hal/hal.c @@ -28,6 +28,8 @@ #include "timing_adapter.h" /* Arm Ethos-U55 timing adapter driver header */ #include "timing_adapter_settings.h" /* Arm Ethos-U55 timing adapter settings */ +extern struct ethosu_driver ethosu_drv; /* Default Ethos-U55 device driver */ + /** * @brief Initialises the Arm Ethos-U55 NPU * @return 0 if successful, error code otherwise @@ -133,7 +135,7 @@ void hal_platform_release(hal_platform *platform) static void arm_npu_irq_handler(void) { /* Call the default interrupt handler from the NPU driver */ - ethosu_irq_handler(); + ethosu_irq_handler(ðosu_drv); } /** @@ -229,7 +231,8 @@ static int arm_npu_init(void) /* Initialise Ethos-U55 device */ const void * ethosu_base_address = (void *)(SEC_ETHOS_U55_BASE); - if (0 != (err = ethosu_init_v3( + if (0 != (err = ethosu_init( + ðosu_drv, /* Ethos-U55 driver device pointer */ ethosu_base_address, /* Ethos-U55's base address. */ NULL, /* Pointer to fast mem area - NULL for U55. */ 0, /* Fast mem region size. */ @@ -243,7 +246,7 @@ static int arm_npu_init(void) /* Get Ethos-U55 version */ struct ethosu_version version; - if (0 != (err = ethosu_get_version(&version))) { + if (0 != (err = ethosu_get_version(ðosu_drv, &version))) { printf_err("failed to fetch Ethos-U55 version info\n"); return err; } |