From 09273d1886634a8c6601e4cc7f7c2ef1e1b14b7a Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Mon, 15 Mar 2021 08:43:08 +0100 Subject: 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 --- src/ethosu_driver.c | 4 ++-- 1 file 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; -- cgit v1.2.1