mstroh76 pirms 9 mēnešiem
vecāks
revīzija
bde772c4b0
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      wiringPi/wiringPi.c
  2. +2
    -0
      wiringPi/wiringPi.h

+ 1
- 1
wiringPi/wiringPi.c Parādīt failu

@@ -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 Parādīt failu

@@ -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) ;


Notiek ielāde…
Atcelt
Saglabāt