- 积分
- 3
贡献25
飞刀2 FD
注册时间2016-3-25
在线时间0 小时

扫一扫,手机访问本帖 
|
自己写了一个测试程序,用来测试开发板linux 3.0.1的les驱动程序(飞凌自带的,没有去修改)。运行测试程序,没有任何反映,串口也无信息输出。LED也没反映。
以下是测试程序:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
int main(int argc, char **argv)
{
int fd;
int val = 1;
fd = open("/dev/leds", O_RDWR);
if (fd < 0)
{
printf("can't open!\n");
}
ioctl(fd, &val, 4);
return 0;
} |
|