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

prussdrv_pru_clear_event swap parameters #41

Open
arielfernando opened this issue Jul 29, 2015 · 4 comments
Open

prussdrv_pru_clear_event swap parameters #41

arielfernando opened this issue Jul 29, 2015 · 4 comments

Comments

@arielfernando
Copy link

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

@jadonk
Copy link
Member

jadonk commented Aug 6, 2015

Thanks for the issue report. Any chance you could provide a bug fix via a pull request as well?

@arielfernando
Copy link
Author

Jason, I was watching the code and i suggest to do a exhaustive review
because these parameters are used in more that one place. I am starting to
work with the beaglebone PRU and I don't want to do a simple swatch.

thanks for your answer
Ariel

El jue., 6 ago. 2015 a las 12:46, Jason Kridner ([email protected])
escribió:

Thanks for the issue report. Any chance you could provide a bug fix via a
pull request as well?


Reply to this email directly or view it on GitHub
#41 (comment)
.

@engkan2kit
Copy link

What happened to this?
Is this the newer way prussdrv_pru_clear_event ( PRU0_ARM_INTERRUPT, PRU_EVTOUT0 );?
Or is this just a clerical error in the documetation?

@e-matteson
Copy link
Contributor

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.

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

No branches or pull requests

4 participants