Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout for EVENT_FETCH #13

Closed
dheatovwil opened this issue Sep 17, 2020 · 2 comments
Closed

Timeout for EVENT_FETCH #13

dheatovwil opened this issue Sep 17, 2020 · 2 comments

Comments

@dheatovwil
Copy link

dheatovwil commented Sep 17, 2020

I have a thread for ep0_loop and another for ep_int_in_loop, apparently I can't write when EVENT_FETCH is blocking, is there a way to timeout the fetch, so I can write something in between?

EDIT: I figure I could implement a timeout manually, but I'm stuck at cancelling the ioctl call ="(

@xairy
Copy link
Owner

xairy commented Sep 17, 2020

I'm not sure I understand. Writing to a non-zero endpoint should be possible while endpoint 0 is blocked on USB_RAW_IOCTL_EVENT_FETCH, see tests/gadget.c as an example. What exactly are you trying to do?

@dheatovwil
Copy link
Author

Thank you for the fast reply and your reaffirmation! I was trying to send a control transfer, just realized I got all the endpoints messed up. After I changed it to write to ep0 for control packet it seems to be working ! Thanks once again =D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants