From 8e20b80575b888468136dc2efbb230f66930b941 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Thu, 18 Apr 2024 16:14:46 +0200 Subject: [PATCH] drivers/timer grtc: Fix for ISR prototype Interrupt handlers are expected to have a pototype void (const void*) but nrfx_grtc_irq_handler has just a void(void) (with no input parameter). Fix it by using a trampoline. Signed-off-by: Alberto Escolar Piedras --- drivers/timer/nrf_grtc_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/timer/nrf_grtc_timer.c b/drivers/timer/nrf_grtc_timer.c index c9e51db2469..b194855f78f 100644 --- a/drivers/timer/nrf_grtc_timer.c +++ b/drivers/timer/nrf_grtc_timer.c @@ -492,7 +492,8 @@ static int sys_clock_driver_init(void) nrfy_grtc_waketime_set(NRF_GRTC, WAKETIME); #endif /* CONFIG_NRF_GRTC_START_SYSCOUNTER */ - IRQ_CONNECT(DT_IRQN(GRTC_NODE), DT_IRQ(GRTC_NODE, priority), nrfx_grtc_irq_handler, 0, 0); + IRQ_CONNECT(DT_IRQN(GRTC_NODE), DT_IRQ(GRTC_NODE, priority), nrfx_isr, + nrfx_grtc_irq_handler, 0); err_code = nrfx_grtc_init(0); if (err_code != NRFX_SUCCESS) {