Skip to content

Commit bc042c0

Browse files
committed
Record ISR entry/exit, when added via AttachInterrupt().
This only affects debug level 3 (Segger SysView) builds.
1 parent dc8b43f commit bc042c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cores/nRF5/WInterrupts.c

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ void detachInterrupt(uint32_t pin)
144144

145145
void GPIOTE_IRQHandler()
146146
{
147+
#if CFG_DEBUG >= 3
148+
SEGGER_SYSVIEW_RecordEnterISR();
149+
#endif
150+
147151
uint32_t event = offsetof(NRF_GPIOTE_Type, EVENTS_IN[0]);
148152

149153
for (int ch = 0; ch < NUMBER_OF_GPIO_TE; ch++) {
@@ -166,4 +170,8 @@ void GPIOTE_IRQHandler()
166170

167171
event = (uint32_t)((uint32_t)event + 4);
168172
}
173+
174+
#if CFG_DEBUG >= 3
175+
SEGGER_SYSVIEW_RecordExitISR();
176+
#endif
169177
}

0 commit comments

Comments
 (0)