为什么我增加一个设备,总是有错啊,
下面是我的程序,帮忙看看,谢谢
void test_addDevice(void) { if(iosInit(0,0,"DGJ"==ERROR)) logMsg("ioInit fail\n",0,0,0,0,0,0); else logMsg("ioInit success\n",0,0,0,0,0,0);
if(iosDrvInstall(NULL,NULL,T_open,NULL,NULL,NULL,NULL)==ERROR) logMsg("drvInstall fail\n",0,0,0,0,0,0); else logMsg("drvInstall success\n",0,0,0,0,0,0);;
if(iosDevAdd(&tt_dev.Header,"DGJ",6)==ERROR) logMsg("Dev Add failed\n",0,0,0,0,0,0); else logMsg("Dev Add success\n",0,0,0,0,0,0);
}