Added in some new functions to return the Pi board revision and

allow access to the wiringPi to BCM_GPIO pin mapping tables.
This commit is contained in:
Gordon Henderson
2012-09-16 11:10:55 +01:00
parent 8cb493937f
commit 538a066c74
2 changed files with 108 additions and 70 deletions

View File

@@ -62,6 +62,9 @@ extern int wiringPiSetupSys (void) ;
extern int wiringPiSetupGpio (void) ;
extern int wiringPiSetupPiFace (void) ;
extern int piBoardRev (void) ;
extern int wpiPinToGpio (int wpiPin) ;
extern int wiringPiSetupPiFaceForGpioProg (void) ; // Don't use this - for gpio program only
extern void (*pinMode) (int pin, int mode) ;