Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit 1b86985

Browse files
committed
HW models: irq: Add irq sources for nrf53
Add irq sources for NRF53. Signed-off-by: Sletnes Bjørlo, Aurora <[email protected]>
1 parent 0e07e58 commit 1b86985

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/HW_models/irq_sources.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,33 @@
1010
* SPDX-License-Identifier: Apache-2.0
1111
*/
1212

13+
#if defined(CONFIG_SOC_SERIES_NRF53X) || \
14+
defined(CONFIG_SOC_COMPATIBLE_NRF53X_CPUNET) || \
15+
defined(NRF53_SERIES)
16+
17+
#define NRF5_IRQ_POWER_CLOCK_IRQn 5
18+
#define NRF5_IRQ_RADIO_IRQn 8
19+
#define NRF5_IRQ_RNG_IRQn 9
20+
#define NRF5_IRQ_GPIOTE_IRQn 10
21+
#define NRF5_IRQ_WDT_IRQn 11
22+
#define NRF5_IRQ_TIMER0_IRQn 12
23+
#define NRF5_IRQ_ECB_IRQn 13
24+
#define NRF5_IRQ_CCM_AAR_IRQn 14
25+
#define NRF5_IRQ_TEMP_IRQn 16
26+
#define NRF5_IRQ_RTC0_IRQn 17
27+
#define NRF5_IRQ_UART0_IRQn 19
28+
#define NRF5_IRQ_SPI0_TWI0_IRQn 19
29+
#define NRF5_IRQ_SPI1_TWI1_IRQn 19
30+
#define NRF5_IRQ_RTC1_IRQn 22
31+
#define NRF5_IRQ_TIMER1_IRQn 24
32+
#define NRF5_IRQ_TIMER2_IRQn 25
33+
#define NRF5_IRQ_SWI0_IRQn 26
34+
#define NRF5_IRQ_SWI1_IRQn 27
35+
#define NRF5_IRQ_SWI2_IRQn 28
36+
#define NRF5_IRQ_SWI3_IRQn 29
37+
38+
#else
39+
1340
#ifndef _NRF5_SOC_COMMON_H_
1441
#define _NRF5_SOC_COMMON_H_
1542

@@ -107,3 +134,5 @@ POSSIBILITY OF SUCH DAMAGE.
107134
#define SWI5_IRQn SWI5_EGU5_IRQn
108135

109136
#endif /* NRF51_TO_NRF52_H */
137+
138+
#endif /*NRF53*/

0 commit comments

Comments
 (0)