mstroh76 9 mesi fa
parent
commit
bde772c4b0
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +1
    -1
      wiringPi/wiringPi.c
  2. +2
    -0
      wiringPi/wiringPi.h

+ 1
- 1
wiringPi/wiringPi.c Vedi File

@@ -494,7 +494,7 @@ static int physToSysGPIOPi5 [41] =
_0v, 420, //39, 40
} ;

static int GPIOToSysFS(const int pin) {
int GPIOToSysFS(const int pin) {
int sysfspin = pin;
if (RaspberryPiModel<0) { //need to detect pi model
int model, rev, mem, maker, overVolted ;


+ 2
- 0
wiringPi/wiringPi.h Vedi File

@@ -203,6 +203,8 @@ extern int wiringPiFailure (int fatal, const char *message, ...) ;
extern struct wiringPiNodeStruct *wiringPiFindNode (int pin) ;
extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ;

extern int GPIOToSysFS(const int pin) ;

extern void wiringPiVersion (int *major, int *minor) ;
extern int wiringPiSetup (void) ;
extern int wiringPiSetupSys (void) ;


Caricamento…
Annulla
Salva