-
Notifications
You must be signed in to change notification settings - Fork 9
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
Problem with timers #34
Comments
What exactly is your application and what exactly is not working? |
Here's my very simple test sketch:
With your library, I see that the counter is always 0. After deleting the return statement, the counter changes as expected (up to 1000 and then from 0 again). |
I am not going to enable that line in In order to use any timer from now on, one should call
This way the timer will be initialized and paused at the same time. So in your sketch you have to replace |
I just tested your sketch modified as suggested and it works, so I will close this now. |
I tried to get general-purpose timers working, but couldn't succeed. Analyzing the library sources I've found that in the file
https://github.com/stevstrong/Arduino_STM32/blob/master/STM32F4/cores/maple/boards.cpp#L125
the function timerDefaultConfig() is eliminated by putting return statement in the first line. So all the timers aren't initialized and don't work.
The text was updated successfully, but these errors were encountered: