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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
9342938ad1
commit
8e20b80575
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue