From bde772c4b01927fbb78b1daecce72999bd8aaccf Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Sat, 27 Jan 2024 16:41:46 +0100 Subject: [PATCH] #16 --- wiringPi/wiringPi.c | 2 +- wiringPi/wiringPi.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index a902083..25c957c 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -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 ; diff --git a/wiringPi/wiringPi.h b/wiringPi/wiringPi.h index ff088ca..0f5cd1c 100644 --- a/wiringPi/wiringPi.h +++ b/wiringPi/wiringPi.h @@ -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) ;