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

or1k timer and interrupt can be enabled at same time? #19

Open
minjiexm opened this issue May 7, 2018 · 1 comment
Open

or1k timer and interrupt can be enabled at same time? #19

minjiexm opened this issue May 7, 2018 · 1 comment

Comments

@minjiexm
Copy link

minjiexm commented May 7, 2018

hi, Dear experts:

I tried to enable timer and interrupt at same time.
I add print in timer tick handler function. If I just enable the timer, I can see the print message.
But if I add or1k_interrupts_enable(); then the print message will not seen.

So is there any examples which support timer and interrupt at the same time?

Thanks.

@minjiexm
Copy link
Author

minjiexm commented May 7, 2018

hi, Dear export:

The reason I did not see the timer print is because interrupt is always high.
Seems like timer is lower priority than interrupts.
Is there any ways to set timer priority higher than interrupts?

Thanks.

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

1 participant