I found where the trick is !!! The takes the number of endpoints and everything from the descriptors, you need to modify two things. In the function is_ep_ndx you need to put
return((hcc_u8)(endx < "HERE WRITHE THE NUMBER OF ENDPOINTS" ? 1 : 0));
and finally need to put in *get_ep_descriptor
return((void*)(kbd_config_descriptor+9+3+9+9+7*(endx-1)))
If you have any doubts you can ask me...
The trouble that i have right now is that when i try to use it with my driver made using the winusb library from windows, i get a code 10 error telling me that the device can't start. But when i use the windriver library i don't get any error code.
This is a peculiar trouble and i don't thing that anyone can help me ... but .... you never know hahaha
Tnx for your reply