MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / waitForInterrupt

Function waitForInterrupt

wiringPi/wiringPi.c:2786–2797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2784}
2785
2786int waitForInterrupt (int pin, int ms) {
2787 struct WPIWfiStatus status;
2788
2789 int edgeMode = isrEdgeMode[pin];
2790 if (edgeMode==0) {
2791 fprintf(stderr, "waitForInterrupt: ERROR: edge mode missing, legacy function, please use waitForInterrupt2!\n");
2792 return -1;
2793 }
2794 status = waitForInterrupt2(pin, edgeMode, ms, 0);
2795
2796 return status.statusOK;
2797}
2798
2799/*
2800 * wiringPiISRStop:

Callers 2

wfi.cFile · 0.85
mainFunction · 0.85

Calls 1

waitForInterrupt2Function · 0.85

Tested by

no test coverage detected