Skip to content

Commit 9df5326

Browse files
committed
nrf5x_bsim: Add irq logging for nrf53
Ensure correct logging of irq with nrf53. Signed-off-by: Aurora Sletnes Bjørlo <[email protected]>
1 parent f9a6abb commit 9df5326

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

boards/posix/nrf5x_bsim/irq_handler.c

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,42 @@ static struct _isr_list irq_vector_table[NRF_HW_NBR_IRQs];
2929

3030
static int currently_running_irq = -1;
3131

32+
#if defined(CONFIG_SOC_SERIES_NRF53X) || \
33+
defined(CONFIG_SOC_COMPATIBLE_NRF53X_CPUNET) || \
34+
defined(NRF53_SERIES)
35+
const char *irqnames[] = { /*just for the traces*/
36+
"", /*0 */
37+
"", /*1 */
38+
"", /*2 */
39+
"", /*3 */
40+
"", /*4 */
41+
"POWER_CLOCK", /*5 */
42+
"", /*6 */
43+
"", /*7 */
44+
"RADIO", /*8 */
45+
"RNG", /*9 */
46+
"GPIOTE", /*10*/
47+
"WDT", /*11*/
48+
"TIMER0", /*12*/
49+
"ECB", /*13*/
50+
"CCM_AAR", /*14*/
51+
"", /*15*/
52+
"TEMP", /*16*/
53+
"RTC0", /*17*/
54+
"IPC", /*18*/
55+
"UART0, SPI0, SPI1, TWI0, TWI1", /*19*/
56+
"EGU0", /*20*/
57+
"", /*21*/
58+
"RTC1", /*22*/
59+
"", /*23*/
60+
"TIMER1", /*24*/
61+
"TIMER2", /*25*/
62+
"SWI0", /*26*/
63+
"SWI1", /*27*/
64+
"SWI2", /*28*/
65+
"SWI3" /*29*/
66+
};
67+
#else
3268
const char *irqnames[] = { /*just for the traces*/
3369
"POWER_CLOCK", /*0 */
3470
"RADIO", /*1 */
@@ -68,6 +104,7 @@ const char *irqnames[] = { /*just for the traces*/
68104
"I2S", /*35*/
69105
"FPU" /*36*/
70106
};
107+
#endif /*nrf53*/
71108

72109
static inline void vector_to_irq(int irq_nbr, int *may_swap)
73110
{

0 commit comments

Comments
 (0)