Browse Source

#210

pull/228/head
mstroh76 6 months ago
parent
commit
4eea4634dd
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      wiringPi/wiringPi.c

+ 0
- 15
wiringPi/wiringPi.c View File

@@ -553,21 +553,6 @@ int piBoard() {
return RaspberryPiModel<0 ? 0 : 1;
}

int GPIOToSysFS(const int pin) {
int sysfspin = pin;
piBoard();
if (PI_MODEL_5 == RaspberryPiModel) {
sysfspin = pin + 399;
if (sysfspin<399 || sysfspin>426) { // only 399-426 supported, 40-pin GPIO header
sysfspin = -1;
}
}
if (wiringPiDebug)
printf ("GPIOToSysFS: translate bcm gpio %d to sysfs gpio %d\n", pin, sysfspin) ;

return sysfspin;
}

int GetMaxPin() {
return PI_MODEL_5 == RaspberryPiModel ? 27 : 63;
}


Loading…
Cancel
Save