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

Using SparkIntervalTimer library with STM32F4 #6

Open
jetbrainrobotics opened this issue May 21, 2021 · 1 comment
Open

Using SparkIntervalTimer library with STM32F4 #6

jetbrainrobotics opened this issue May 21, 2021 · 1 comment

Comments

@jetbrainrobotics
Copy link

The issue is that I need NewPing library ( for sonars ) which uses SparkIntervalTimer to be working with STM32F4 boards.
What I tried ( I used hardware timer library ) throws multiple errors.
Any guidance will be appreciated

@pkourany
Copy link
Owner

@jetbrainrobotics, the SparkIntervalTimer library is based on the PJRC IntervalTimer library written by Daniel Gilbert. I rewrote it to work with the Particle Gen1 & 2 family of products which are/were based on the STM32F103 and STM32F205 MCUs. The library was not written to support any other (ie non-Particle) platform. However, you are welcome to adapt it as you see fit.

If you are writing for the Arduino IDE, I suggest you use Arduino_Core_STM32 which supports hardware timers.

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

2 participants