From ebe9a15e7e3527ff3d8824a6239c1bf68b408647 Mon Sep 17 00:00:00 2001 From: Anton Moberg Date: Mon, 3 May 2021 09:28:52 +0200 Subject: [Core Platform] Update to support removal of "_v"-functions NPU driver interface currently have functions which have been stepped each time a compatibilty breaking changed has been introduced. Old entrypoints have been redefined with macro to use the latest version for backwards compatibility. This series of patches will remove any such functions and macro to unify the interface. Update: All driver entrypoints to support updated interface Change-Id: Ibe5fa7b2ac909eceb16a6879d4eaf9d0d7e36211 --- targets/corstone-300/target.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'targets/corstone-300/target.cpp') diff --git a/targets/corstone-300/target.cpp b/targets/corstone-300/target.cpp index 5d93854..2344995 100644 --- a/targets/corstone-300/target.cpp +++ b/targets/corstone-300/target.cpp @@ -135,7 +135,7 @@ void HardFault_Handler() { #ifdef ETHOSU void ethosuIrqHandler() { - ethosu_irq_handler(); + ethosu_irq_handler(ethosu0_driver); } #endif @@ -158,12 +158,12 @@ void targetSetup() { #ifdef ETHOSU // Initialize Ethos-U NPU driver - if (ethosu_init_v4(ethosu0_driver, - reinterpret_cast(ETHOSU_BASE_ADDRESS), - ethosu_scratch, - ETHOSU_FAST_MEMORY_SIZE, - 1, - 1)) { + if (ethosu_init(ethosu0_driver, + reinterpret_cast(ETHOSU_BASE_ADDRESS), + ethosu_scratch, + ETHOSU_FAST_MEMORY_SIZE, + 1, + 1)) { printf("Failed to initialize NPU.\n"); return; } -- cgit v1.2.1