Version 3.13 : debounce time added for wiringPiISR and waitForInterrupt library functions. Documentation update

This commit is contained in:
phylax2020
2025-01-29 19:09:32 +01:00
parent b55101e013
commit 0bf457519d
6 changed files with 77 additions and 39 deletions

View File

@@ -177,7 +177,7 @@ void printgpio(const char* text) {
}
}
static void wfi (void) {
static void wfi (unsigned int pin, long long int timestamp) {
globalCounter++;
if(globalCounter>=iterations) {
printgpio("finished\n");
@@ -217,7 +217,7 @@ void doWfi (int argc, char *argv [])
timeoutSec = atoi(argv [5]);
}
if (wiringPiISR (pin, mode, &wfi) < 0)
if (wiringPiISR (pin, mode, &wfi, 0) < 0)
{
fprintf (stderr, "%s: wfi: Unable to setup ISR: %s\n", argv [1], strerror (errno)) ;
exit (1) ;