Skip to content

Commit 28e9a12

Browse files
authored
Merge pull request adafruit#370 from henrygab/AddSystemViewInterruptLogging
Record ISR entry/exit for `AttachInterrupt()`
2 parents dc8b43f + bc042c0 commit 28e9a12

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)