Merge pull request #353 from Next-Door-Tech/SPIxSetup
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* wiringPiSPI.c:
|
* wiringPiSPI.c:
|
||||||
* Simplified SPI access routines
|
* Simplified SPI access routines
|
||||||
* Copyright (c) 2012-2015 Gordon Henderson
|
* Copyright (c) 2012-2025 Gordon Henderson and contributors
|
||||||
***********************************************************************
|
***********************************************************************
|
||||||
* This file is part of wiringPi:
|
* This file is part of wiringPi:
|
||||||
* https://github.com/WiringPi/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) {
|
int wiringPiSPISetup (int channel, int speed) {
|
||||||
return wiringPiSPIxSetupMode(0, channel, speed, 0) ;
|
return wiringPiSPIxSetupMode(0, channel, speed, 0) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* wiringPiSPI.h:
|
* wiringPiSPI.h:
|
||||||
* Simplified SPI access routines
|
* Simplified SPI access routines
|
||||||
* Copyright (c) 2012-2024 Gordon Henderson and contributors
|
* Copyright (c) 2012-2025 Gordon Henderson and contributors
|
||||||
***********************************************************************
|
***********************************************************************
|
||||||
* This file is part of wiringPi:
|
* This file is part of wiringPi:
|
||||||
* https://github.com/WiringPi/WiringPi/
|
* https://github.com/WiringPi/WiringPi/
|
||||||
|
|||||||
Reference in New Issue
Block a user