mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 02:11:57 +00:00
The simple function that helps to integrate nrfx IRQ handlers with the IRQ_CONNECT macro can be used in shims for various nrfx drivers, not only the SPI one. Similarly, the macro for getting the IRQ number from the peripheral base address needs to be widely available. It should be even moved to <nrfx_common.h> in some next nrfx update. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
13 lines
193 B
C
13 lines
193 B
C
/**
|
|
* Copyright (c) 2018, Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <nrfx.h>
|
|
|
|
void nrfx_isr(void *irq_handler)
|
|
{
|
|
((nrfx_irq_handler_t)irq_handler)();
|
|
}
|