mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-22 11:52:40 +01:00
add wiringPi a04 code
This commit is contained in:
@@ -109,7 +109,7 @@ int wiringPiSPISetupMode (int channel, int speed, int mode)
|
||||
// Channel can be anything - lets hope for the best
|
||||
// channel &= 1 ; // Channel is 0 or 1
|
||||
|
||||
#ifdef CONFIG_CLOCKWORKPI
|
||||
#ifdef CONFIG_CLOCKWORKPI_A06
|
||||
snprintf (spiDev, 31, "/dev/spidev2.%d", channel) ;
|
||||
#else
|
||||
snprintf (spiDev, 31, "/dev/spidev0.%d", channel) ;
|
||||
|
||||
Reference in New Issue
Block a user