wiringPi: Ignore Unused function amd param.
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void myDigitalWrite (struct wiringPiNodeStruct *node, int pin, int value)
|
void myDigitalWrite (UNU struct wiringPiNodeStruct *node, int pin, int value)
|
||||||
{
|
{
|
||||||
digitalWrite (pin + 16, value) ;
|
digitalWrite (pin + 16, value) ;
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ int myDigitalRead (struct wiringPiNodeStruct *node, int pin)
|
|||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void myPullUpDnControl (struct wiringPiNodeStruct *node, int pin, int pud)
|
void myPullUpDnControl (UNU struct wiringPiNodeStruct *node, int pin, int pud)
|
||||||
{
|
{
|
||||||
pullUpDnControl (pin + 16 + 8, pud) ;
|
pullUpDnControl (pin + 16 + 8, pud) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ static void warn_msg(const char *func)
|
|||||||
// Unsupport Function list on ODROIDs
|
// Unsupport Function list on ODROIDs
|
||||||
//
|
//
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
static void piGpioLayoutOops (const char UNU *why) { warn_msg(__func__); return; }
|
static void UNU piGpioLayoutOops (const char UNU *why) { warn_msg(__func__); return; }
|
||||||
void pwmSetMode (int UNU mode) { warn_msg(__func__); return; }
|
void pwmSetMode (int UNU mode) { warn_msg(__func__); return; }
|
||||||
void pwmSetRange (unsigned int UNU range) { warn_msg(__func__); return; }
|
void pwmSetRange (unsigned int UNU range) { warn_msg(__func__); return; }
|
||||||
void pwmSetClock (int UNU divisor) { warn_msg(__func__); return; }
|
void pwmSetClock (int UNU divisor) { warn_msg(__func__); return; }
|
||||||
@@ -199,8 +199,8 @@ struct wiringPiNodeStruct *wiringPiFindNode (int UNU pin) { return NULL; }
|
|||||||
|
|
||||||
static void pinModeDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int mode) { return ; }
|
static void pinModeDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int mode) { return ; }
|
||||||
static void pullUpDnControlDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int pud) { return ; }
|
static void pullUpDnControlDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int pud) { return ; }
|
||||||
static unsigned int digitalRead8Dummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return 0 ; }
|
static unsigned int UNU digitalRead8Dummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return 0 ; }
|
||||||
static void digitalWrite8Dummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
static void UNU digitalWrite8Dummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
||||||
static int digitalReadDummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return LOW ; }
|
static int digitalReadDummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return LOW ; }
|
||||||
static void digitalWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
static void digitalWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
||||||
static void pwmWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
static void pwmWriteDummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
|
||||||
@@ -468,8 +468,6 @@ void setPadDrive (int pin, int value)
|
|||||||
{
|
{
|
||||||
if (libwiring.setPadDrive)
|
if (libwiring.setPadDrive)
|
||||||
return libwiring.setPadDrive(pin, value);
|
return libwiring.setPadDrive(pin, value);
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ static int doExtensionPcf8591 (char *progName, int pinBase, char *params)
|
|||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int doExtensionPseudoPins (UNU char *progName, int pinBase, UNU char *params)
|
static int UNU doExtensionPseudoPins (UNU char *progName, int pinBase, UNU char *params)
|
||||||
{
|
{
|
||||||
pseudoPinsSetup (pinBase) ;
|
pseudoPinsSetup (pinBase) ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user