-
Notifications
You must be signed in to change notification settings - Fork 180
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
prussdrv_pru_clear_event swap parameters #41
Comments
Thanks for the issue report. Any chance you could provide a bug fix via a pull request as well? |
Jason, I was watching the code and i suggest to do a exhaustive review thanks for your answer El jue., 6 ago. 2015 a las 12:46, Jason Kridner ([email protected])
|
What happened to this? |
I'm curious as well. I haven't been able to clear PRU->host interrupts properly, using either argument order. If I attempt to clear them, the interrupt will only be received once, even if it is sent many times. If I don't clear them, the interrupt will be received many times, even if it is only sent once. Neither of these behaviors are useful. |
I had a problem using this function.
The function definition is:
int prussdrv_pru_clear_event (unsigned int host_interrupt, unsigned int eventnum);
and the example is
prussdrv_pru_clear_event ( PRU0_ARM_INTERRUPT, PRU_EVTOUT0 );
but this example doesn't work. To make it work I had to swap the parameters:
prussdrv_pru_clear_event(PRU_EVTOUT_0, PRU0_ARM_INTERRUPT);
Thanks
The text was updated successfully, but these errors were encountered: