Mouse_get_descr(0x01);//獲取設(shè)備描述符
printf("device\n");
Request.Req.bmRequestType=0x80;
Request.Req.bRequest=0x06;
Request.Req.wValue=0x0100; ? ??
Request.Req.wIndex=0x0000;
Request.Req.wLength=0x0012;
if( Mouse_get_descr_ex() == 1 )
{
for(i=0;i!=data_buf[0];i++)
printf("%02x ",(unsigned int)data_buf[i]);
printf("\n");
}
else printf("get device descr failed\n");
/***** 設(shè)置地址 ?*****/
printf("Mouse_set_addr\n");
Mouse_set_addr(5);//設(shè)置地址
程序獲取設(shè)備描述符之后,設(shè)置地址中斷信號一直為高電平,求助是哪的問題