Add function definition for wiringPiSPIxSetup()

This commit is contained in:
Connor Gibson
2025-05-27 16:16:41 -07:00
parent 365690f612
commit efbf39df02

View File

@@ -1,7 +1,7 @@
/*
* wiringPiSPI.c:
* Simplified SPI access routines
* Copyright (c) 2012-2015 Gordon Henderson
* Copyright (c) 2012-2025 Gordon Henderson and contributors
***********************************************************************
* This file is part of wiringPi:
* https://github.com/WiringPi/WiringPi/
@@ -195,6 +195,11 @@ int wiringPiSPISetupMode (int channel, int speed, int mode) {
*********************************************************************************
*/
int wiringPiSPIxSetup (const int number, const int channel, const int speed) {
return wiringPiSPIxSetupMode(number, channel, speed, 0) ;
}
int wiringPiSPISetup (int channel, int speed) {
return wiringPiSPIxSetupMode(0, channel, speed, 0) ;
}