From 25d78c0062908e91b4d0ae241600f4a077a19400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Tue, 21 Apr 2020 14:19:44 +0200 Subject: MLBEDSW-1796 Refactor IRQ initialization Turn the IRQ initialization around, to have the application define the interrupt handler and expose the driver routine that is to be called when that happens. Change-Id: Idbfba1b1d1a1eaf6678ee16e9583c496eb2287ed --- include/ethosu_driver.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h index 5d75852..7ab420a 100644 --- a/include/ethosu_driver.h +++ b/include/ethosu_driver.h @@ -92,6 +92,11 @@ int ethosu_invoke(const void *custom_data_ptr, */ void ethosu_abort(void); +/** + * Interrupt handler do be called on IRQ from Ethos-U + */ +void ethosu_irq_handler(void); + #ifdef __cplusplus } #endif -- cgit v1.2.1