Skip to content

Commit

Permalink
wiringPi: Ignore Unused function amd param.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiane authored and joshua-yang committed Jul 8, 2019
1 parent 2ee8a0d commit e0bbe87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions devLib/piFace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;
}
Expand Down Expand Up @@ -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) ;
}
Expand Down
8 changes: 3 additions & 5 deletions wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static void warn_msg(const char *func)
// 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 pwmSetRange (unsigned int UNU range) { warn_msg(__func__); return; }
void pwmSetClock (int UNU divisor) { warn_msg(__func__); return; }
Expand All @@ -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 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 void digitalWrite8Dummy (UNU struct wiringPiNodeStruct *node, UNU int pin, UNU int value) { return ; }
static unsigned int UNU digitalRead8Dummy (UNU struct wiringPiNodeStruct *node, UNU int UNU pin) { return 0 ; }
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 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 ; }
Expand Down Expand Up @@ -468,8 +468,6 @@ void setPadDrive (int pin, int value)
{
if (libwiring.setPadDrive)
return libwiring.setPadDrive(pin, value);

return -1;
}

/*----------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion wiringPi/wpiExtensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;

Expand Down

0 comments on commit e0bbe87

Please sign in to comment.