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
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 @@
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 @@
/* 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 @@
/* 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;
}