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

Timer interrupts? #17

Closed
laterrps opened this issue Aug 21, 2017 · 7 comments
Closed

Timer interrupts? #17

laterrps opened this issue Aug 21, 2017 · 7 comments

Comments

@laterrps
Copy link

does exist any way for using timer interrrupts?

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 21, 2017 via email

@laterrps
Copy link
Author

i would like to supervise certain tasks not using if(millis()%x==0) i would like to use timer interrupts.

@laterrps
Copy link
Author

laterrps commented Aug 21, 2017

I have been watchin your code and i find out that you are using timers interrupts for dac converters and pwm , is it too dificult to implement just timmer interrupts?

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 21, 2017 via email

@kriswiner
Copy link

kriswiner commented Aug 21, 2017 via email

@laterrps
Copy link
Author

Thank you very much i'll see it!
best regards!!

@laterrps
Copy link
Author

Thank you very much!!! it works!!!

armv7m_timer_t myTimer;

armv7m_timer_create(&myTimer, (armv7m_timer_callback_t)myTimerCallback);

armv7m_timer_start(&myTimer, timeout);

armv7m_timer_stop(&myTimer);

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

3 participants