hi3531调用sil9024的驱动 分类: HI3531 2014-03-21 16:22 1114人阅读 评论(0) 收藏
//测试mao
printf("\n\n");
unsigned int cmd=1;
unsigned long arg =4;
fd = open("/dev/sil9024", O_RDWR);
if (fd < 0)
{
printf("open sil9024 fail\n");
}
else
{
printf("open sil9024 ok\n");
}
int retu = ioctl(fd,cmd,arg );
if (retu)
{
printf("1 set sil9024 video mode fail %d\n",retu);
}
close(fd);
printf("\n\n");
printf("\n\n");
unsigned int cmd=1;
unsigned long arg =4;
fd = open("/dev/sil9024", O_RDWR);
if (fd < 0)
{
printf("open sil9024 fail\n");
}
else
{
printf("open sil9024 ok\n");
}
int retu = ioctl(fd,cmd,arg );
if (retu)
{
printf("1 set sil9024 video mode fail %d\n",retu);
}
close(fd);
printf("\n\n");
版权声明:本文为博主原创文章,未经博主允许不得转载。