Hello
I'm using arch linux: 3.18.3-3-ARCH #1 PREEMPT with newest wiringpi-git 69.0a9fdeb-1 packet from the AUR.
spi is enabled in config.txt
module spi_bcm2708 is loaded and devices are in /dev/spidev0.0 and /dev/spidev0.1
$this->bbcode_second_pass_code('', '
fd = wiringPiSPISetup (0, 500000);
if (fd == -1)
errExit("wiringPiSPISetup");
')
--function call returns without errors
$this->bbcode_second_pass_code('', '
uint8_t buff = 0b11110000;
ret = wiringPiSPIDataRW (0, &buff, 1);
if (ret == -1)
errExit("wiringPiSPIDataRW");
buff = 0b00001111;
ret = wiringPiSPIDataRW (0, &buff, 1);
if (ret == -1)
errExit("wiringPiSPIDataRW");
')
the second function call returns -1 with [EINVAL Invalid argument]
the first byte is shifted out correctly (i have a logic analyser on the spi bus)
echo 123 > /dev/spidev0.0 works fine
This code worked with older kernels, but after the jump to 3.18 it doesn't.
But i can't say it exactly because i have used the libwiringPi the last time in last year.
Do i make a mistake ? Does something changed in the kernel ?
Is somebody able to reproduce the error ?
regards Marco Oklitz