diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-03-15 08:43:08 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-03-19 10:59:03 +0100 |
commit | 09273d1886634a8c6601e4cc7f7c2ef1e1b14b7a (patch) | |
tree | 84ecd34968f6cb19c47eaa8877f6da10a92fd739 /src/ethosu_driver.c | |
parent | 0fd65cec95a1d8735c21c4dc3b728576e09487ad (diff) | |
download | ethos-u-core-driver-09273d1886634a8c6601e4cc7f7c2ef1e1b14b7a.tar.gz |
Make IRQ handler weak
Allow the IRQ handler to be overridden for test cases that operate
directly on top of the device driver.
Change-Id: Iddf7aec041a3183583e6e4d8521d5a637c379689
Diffstat (limited to 'src/ethosu_driver.c')
-rw-r--r-- | src/ethosu_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c index cb1790e..d4c4307 100644 --- a/src/ethosu_driver.c +++ b/src/ethosu_driver.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. All rights reserved. + * Copyright (c) 2019-2021 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -201,7 +201,7 @@ void __attribute__((weak)) ethosu_yield() {} */ void __attribute__((weak)) ethosu_resume() {} -void ethosu_irq_handler_v2(struct ethosu_driver *drv) +void __attribute__((weak)) ethosu_irq_handler_v2(struct ethosu_driver *drv) { uint8_t irq_raised = 0; |