hello ------test source----------- device="/dev/spi_misc_test"; fd = open(device, O_RDWR);
if (fd < 0)
pabort("can't open device"); /*
* spi mode
*/
ret = ioctl(fd, SPI_IOC_WR_MODE, &mode);
if (ret == -1)
pabort("can't set spi mode"); ----------------------------------- however error abort.
How do I use SPI? |