Skip to content

Commit 610a7e2

Browse files
ananglkartben
authored andcommitted
tests: arch: arm_irq_vector_table: Fix IRQ number used by nRF GRTC
Instead of using hard-coded GRTC_0_IRQn value, obtain information from DT to get the IRQ number actually used by the nrf_grtc_timer driver. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
1 parent dd1bc24 commit 610a7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/arch/arm/arm_irq_vector_table/src/arm_irq_vector_table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void timer0_nrf_isr(void);
163163
defined(CONFIG_SOC_SERIES_NRF92X)
164164
void nrfx_grtc_irq_handler(void);
165165
#define TIMER_IRQ_HANDLER nrfx_grtc_irq_handler
166-
#define TIMER_IRQ_NUM GRTC_0_IRQn
166+
#define TIMER_IRQ_NUM DT_IRQN(DT_NODELABEL(grtc))
167167
#else
168168
void rtc_nrf_isr(void);
169169
#define TIMER_IRQ_HANDLER rtc_nrf_isr

0 commit comments

Comments
 (0)