| 2784 | } |
| 2785 | |
| 2786 | int 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: |
no test coverage detected