qq2440_leds驱动已经编译到内核当中 ,我下了对应测试程序到开发板 运行程序的时候传递了参数 但是led不受控制 还是走流水灯的状态 大家知道这个是怎么回事吗
fd = open("/dev/leds0", 0); //好像这个有错误
if (fd < 0) {
perror("open device leds");
exit(1);
}
要改为
fd = open("/dev/leds", 0);
if (fd < 0) {
perror("open device leds");
exit(1);
}