aboutsummaryrefslogtreecommitdiff
path: root/targets/corstone-300/target.cpp
diff options
context:
space:
mode:
authorAnton Moberg <anton.moberg@arm.com>2021-05-03 09:28:52 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-05-04 13:19:08 +0000
commitebe9a15e7e3527ff3d8824a6239c1bf68b408647 (patch)
treee3fec76b321e18aca70163587da89c7bd15484a5 /targets/corstone-300/target.cpp
parent6440bba43e6842047c8b7ef1e48b786a3c1c2e01 (diff)
downloadethos-u-core-platform-ebe9a15e7e3527ff3d8824a6239c1bf68b408647.tar.gz
[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
Diffstat (limited to 'targets/corstone-300/target.cpp')
-rw-r--r--targets/corstone-300/target.cpp14
1 files changed, 7 insertions, 7 deletions
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<void *>(ETHOSU_BASE_ADDRESS),
- ethosu_scratch,
- ETHOSU_FAST_MEMORY_SIZE,
- 1,
- 1)) {
+ if (ethosu_init(ethosu0_driver,
+ reinterpret_cast<void *>(ETHOSU_BASE_ADDRESS),
+ ethosu_scratch,
+ ETHOSU_FAST_MEMORY_SIZE,
+ 1,
+ 1)) {
printf("Failed to initialize NPU.\n");
return;
}