- 积分
- 96
贡献68
飞刀4 FD
注册时间2011-11-22
在线时间61 小时

扫一扫,手机访问本帖 
|
想测试一下内核的SPI驱动,可是连内核自带的测试程序怎么编译都编译不过,
# arm-linux-gcc spidev_test.c -o spidev_test
出现一下错误:
spidev_test.c: In function 'parse_opts':
spidev_test.c:145: error: 'SPI_NO_CS' undeclared (first use in this function)
spidev_test.c:145: error: (Each undeclared identifier is reported only once
spidev_test.c:145: error: for each function it appears in.)
spidev_test.c:148: error: 'SPI_READY' undeclared (first use in this function)
大家是怎么编译的呢? |
|