add wiringPi a04 code

This commit is contained in:
cuu
2022-02-24 14:54:25 +08:00
parent 9a21d046e0
commit 57f5328423
5 changed files with 310 additions and 195 deletions

View File

@@ -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) ;