diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2021-06-01 18:40:45 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-06-08 14:54:57 +0000 |
commit | c5941c40cce587814bed52a3645cb72150e6c755 (patch) | |
tree | 6e96bacf6714120c852a22567825d58035017576 /targets | |
parent | f821c61fddd0193b6333a76f39904d201f30b7e6 (diff) | |
download | ethos-u-core-platform-c5941c40cce587814bed52a3645cb72150e6c755.tar.gz |
Remove hardcoded Ethos-U driver instance
Adjust to updated Ethos-U driver
Change-Id: Ie374c29bec2baee4717634588b22f6db419ad9a3
Diffstat (limited to 'targets')
-rw-r--r-- | targets/corstone-300/target.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/targets/corstone-300/target.cpp b/targets/corstone-300/target.cpp index 2344995..541d4a5 100644 --- a/targets/corstone-300/target.cpp +++ b/targets/corstone-300/target.cpp @@ -60,7 +60,7 @@ __attribute__((aligned(16), section(".bss.ethosu_scratch"))) uint8_t ethosu_scra #endif #ifdef ETHOSU -struct ethosu_driver *ethosu0_driver = ðosu_drv; +struct ethosu_driver ethosu0_driver; #endif static uintptr_t ethosu_ta_base_addrs[ETHOSU_NPU_COUNT][ETHOSU_NPU_TA_COUNT] = { @@ -135,7 +135,7 @@ void HardFault_Handler() { #ifdef ETHOSU void ethosuIrqHandler() { - ethosu_irq_handler(ethosu0_driver); + ethosu_irq_handler(ðosu0_driver); } #endif @@ -158,7 +158,7 @@ void targetSetup() { #ifdef ETHOSU // Initialize Ethos-U NPU driver - if (ethosu_init(ethosu0_driver, + if (ethosu_init(ðosu0_driver, reinterpret_cast<void *>(ETHOSU_BASE_ADDRESS), ethosu_scratch, ETHOSU_FAST_MEMORY_SIZE, |